Skip to content
Snippets Groups Projects
Commit ec5297c8 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

logging errors to console

parent f49bb79f
No related branches found
No related tags found
No related merge requests found
Pipeline #7230 passed
......@@ -60,6 +60,8 @@ app.use(function (err, req, res, next) {
res.locals.message = err.message;
res.locals.error = err;
console.error(err.stack);
// render the error page
res.status(err.status || 500);
res.render("error");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment