mirror of
https://github.com/Foltik/Shimapan
synced 2024-12-12 06:20:46 -05:00
Remove redundant stack trace from error handler
This commit is contained in:
parent
3c7947ada1
commit
3c92ef4640
@ -78,7 +78,6 @@ require('./config/passport.js');
|
|||||||
app.use((err, req, res, next) => {
|
app.use((err, req, res, next) => {
|
||||||
console.error('Unhandled error!');
|
console.error('Unhandled error!');
|
||||||
console.error(err);
|
console.error(err);
|
||||||
console.error(err.stack);
|
|
||||||
res.status(500).json({'message': 'Internal server error.'});
|
res.status(500).json({'message': 'Internal server error.'});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user