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.
letu/routes/utils/error.js

5 lines
183 B
JavaScript
Raw Normal View History

2020-10-12 23:34:51 +02:00
module.exports = (req, res, message, status, subMessage) => {
res.status(status || 500);
res.render("error", {message: message, error: {status: subMessage || undefined}});
};