Plugin onError in addition to route group onError
#786
Unanswered
LordZardeck
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it not supported to have plugins write their own
onErrorhandler and only handle errors it knows about, with unhandled ones bubbling up? For example, i have aworkerPluginthat handlesSignatureValiationError. If that error is not thrown, I do nothing else in thatonErrorhandler. Then on the actual route itself, i have aRouteRuntimeErrorbeing handled and by default handles it with a 500 response. Finally, on the app itself, I have a.onError(console.error). For some reason, only the app-levelonErroris executing, bypassing my routeonErrorBeta Was this translation helpful? Give feedback.
All reactions