back/Application: fix fallback error template view name

This commit is contained in:
Alice Gaudon 2021-11-24 22:13:34 +01:00
parent 9980c54fcf
commit 179cb09b58

View File

@ -200,7 +200,7 @@ export default abstract class Application implements Extendable<ApplicationCompo
}; };
res.render('errors/' + httpError.errorCode, locals, (err: Error | undefined, html) => { res.render('errors/' + httpError.errorCode, locals, (err: Error | undefined, html) => {
if (err) { if (err) {
res.render('errors/Error', locals); res.render('templates/ErrorTemplate', locals);
} else { } else {
res.send(html); res.send(html);
} }