mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
core: pass rawError to onerror render
This commit is contained in:
1 file changed
+5
-1
@@ -233,7 +233,11 @@ export async function apply(ctx: Context) {
|
||||
this.response.template = error instanceof UserFacingError ? 'error.html' : 'bsod.html';
|
||||
this.response.body = {
|
||||
UserFacingError,
|
||||
error: { message: error.msg(), params: error.params, stack: errorMessage(error.stack || '') },
|
||||
error: {
|
||||
message: error.msg(), stack: errorMessage(error.stack || ''),
|
||||
params: error.params, name: error.name, code: error.code,
|
||||
},
|
||||
_rawError: error,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user