mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
fix(nuxt): call app:error before throwing in renderer
This commit is contained in:
parent
48a8b18083
commit
0f56e17988
@ -355,6 +355,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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user