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
207 B
JavaScript
Raw 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", {user: req.session.user, message: message, error: {status: subMessage || undefined}});
};