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

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}});
};