This commit is contained in:
Julien Huang 2024-09-20 12:19:36 +10:00 committed by GitHub
commit fe114c090e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

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