mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-12-22 12:37:42 +00:00
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) => {
|
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, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user