Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
SOD/routes/utils/error.js

5 lines
183 B
JavaScript
Raw Permalink Normal View History

2020-08-20 12:14:38 +02:00
module.exports = (req, res, message, status, subMessage) => {
res.status(status || 500);
res.render("error", {message: message, error: {status: subMessage || undefined}});
2020-08-20 12:14:38 +02:00
};