1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-13 00:26:55 -05:00

Fix error handler

This commit is contained in:
Jack Foltz 2018-08-14 05:12:05 -04:00
parent d37103ea39
commit 50acf343ba
Signed by: foltik
GPG Key ID: 303F88F996E95541

View File

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