This commit is contained in:
Julien Huang 2024-11-20 06:35:52 -05:00 committed by GitHub
commit 725f48f1f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
} }