fix: add error handling to website routes

This commit is contained in:
mrjvs
2026-08-05 17:10:12 +02:00
parent 1595159755
commit 76cb384fa1

View File

@@ -127,6 +127,11 @@ app.use((request, response) => {
response.render('404');
});
app.use((error, request, response, _next) => {
console.error(error);
response.send('<h1>An error occured, try again later</h1>');
});
logger.info('Setting up handlebars engine');
app.engine('handlebars', handlebars({
helpers: {