spacedeck-open/middlewares/500.js

10 lines
185 B
JavaScript
Raw Normal View History

2017-04-07 01:29:05 +02:00
'use strict';
module.exports = (err, req, res, next) => {
console.error(err);
res.status(err.status || 500);
res.render('error', {
message: err.message,
error: {}
});
}