5 lines
183 B
JavaScript
5 lines
183 B
JavaScript
|
module.exports = (req, res, message, status, subMessage) => {
|
||
|
res.status(status || 500);
|
||
|
res.render("error", {message: message, error: {status: subMessage || undefined}});
|
||
|
};
|