6 lines
137 B
JavaScript
6 lines
137 B
JavaScript
|
module.exports = (err, req, res, next) => {
|
||
|
console.error(err.stack);
|
||
|
res.status(500);
|
||
|
res.render("error", {session: req.session});
|
||
|
}
|