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, () => {