back/Application: fix fallback error template view name
This commit is contained in:
parent
9980c54fcf
commit
179cb09b58
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user