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
1 changed files with 1 additions and 1 deletions

View File

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