framework: better middleware stack

This commit is contained in:
undefined committed 2024-08-29 18:49:49 +08:00
1 parent 00b90f4456
commit c303849d4d
2 files changed
+12 -5

No files matched your search

-1
View File
@@ -102,7 +102,6 @@ export class Handler extends HandlerOriginal {
});
} else {
this.response.status = error instanceof UserFacingError ? error.code : 500;
logger.error(error);
this.response.template = error instanceof UserFacingError ? 'error.html' : 'bsod.html';
this.response.body = {
UserFacingError,