Adjust app
This commit is contained in:
parent
3bd6153211
commit
53b7909910
1
app.js
1
app.js
@ -21,6 +21,7 @@ app.use((err, req, res, next) => {
|
|||||||
const statusCode = err.statuscode || 500;
|
const statusCode = err.statuscode || 500;
|
||||||
console.error(err.message, err.stack);
|
console.error(err.message, err.stack);
|
||||||
res.status(statusCode).json({'message': err.message});
|
res.status(statusCode).json({'message': err.message});
|
||||||
|
return;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Point to Routes
|
// Point to Routes
|
||||||
|
Reference in New Issue
Block a user