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