mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
framework: better middleware stack
This commit is contained in:
2 files changed
+12
-5
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user