spacedeck-open/middlewares/500.js
2017-04-07 01:29:05 +02:00

10 lines
185 B
JavaScript

'use strict';
module.exports = (err, req, res, next) => {
console.error(err);
res.status(err.status || 500);
res.render('error', {
message: err.message,
error: {}
});
}