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