Just send back the message, this is a demo after all

This commit is contained in:
Gilbert 2024-06-20 04:05:10 -05:00
parent cff9a5b2ea
commit c6a78f2116

View File

@ -114,7 +114,7 @@ export const createAndStartServer = async (
app.use((err: any, req: any, res: any, next: any) => { app.use((err: any, req: any, res: any, next: any) => {
console.error(err); console.error(err);
res.status(500).json({ error: 'Internal Server Error' }); res.status(500).json({ error: err.message });
}); });
httpServer.listen(port, host, () => { httpServer.listen(port, host, () => {