Just send back the message, this is a demo after all
This commit is contained in:
parent
cff9a5b2ea
commit
c6a78f2116
@ -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, () => {
|
||||
|
Loading…
Reference in New Issue
Block a user