core: pass rawError to onerror render

This commit is contained in:
undefined committed 2026-02-21 22:27:40 +08:00
1 parent 2a2dfc77b3
commit ae60a9907f
1 file changed
+5 -1
+5 -1
View File
@@ -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,
};
}
},