From c6a78f2116ff2400468d3ad18ad5e6625e24d769 Mon Sep 17 00:00:00 2001 From: Gilbert Date: Thu, 20 Jun 2024 04:05:10 -0500 Subject: [PATCH] Just send back the message, this is a demo after all --- packages/backend/src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server.ts b/packages/backend/src/server.ts index 26c133be..ae3eecae 100644 --- a/packages/backend/src/server.ts +++ b/packages/backend/src/server.ts @@ -114,7 +114,7 @@ export const createAndStartServer = async ( app.use((err: any, req: any, res: any, next: any) => { console.error(err); - res.status(500).json({ error: 'Internal Server Error' }); + res.status(500).json({ error: err.message }); }); httpServer.listen(port, host, () => {