akf-forum/errors/error.js

3 lines
95 B
JavaScript

module.exports = (res, type, error) =>
res.status(type).render("error", { type, error });