1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-12-03 02:49:13 -05:00

Remove redundant stack trace from error handler

This commit is contained in:
Jack Foltz 2019-01-02 16:47:41 -05:00
parent 3c7947ada1
commit 3c92ef4640
Signed by: foltik
GPG Key ID: D1F0331758D1F29A

View File

@ -78,7 +78,6 @@ require('./config/passport.js');
app.use((err, req, res, next) => {
console.error('Unhandled error!');
console.error(err);
console.error(err.stack);
res.status(500).json({'message': 'Internal server error.'});
});