Compare commits

...

2 Commits

Author SHA1 Message Date
Julien Huang
adce67250b
Merge 0f56e17988 into cf8142b734 2024-11-19 15:12:43 -05:00
Julien Huang
0f56e17988 fix(nuxt): call app:error before throwing in renderer 2024-07-16 21:05:48 +02:00

View File

@ -351,6 +351,7 @@ export default defineRenderHandler(async (event): Promise<Partial<RenderResponse
// Handle errors // Handle errors
if (ssrContext.payload?.error && !ssrError) { if (ssrContext.payload?.error && !ssrError) {
await ssrContext.nuxt?.hooks.callHook('app:error', ssrContext.payload.error)
throw ssrContext.payload.error throw ssrContext.payload.error
} }