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
-
Is it not supported to have plugins write their own
onError
handler and only handle errors it knows about, with unhandled ones bubbling up? For example, i have aworkerPlugin
that handlesSignatureValiationError
. If that error is not thrown, I do nothing else in thatonError
handler. Then on the actual route itself, i have aRouteRuntimeError
being 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-levelonError
is executing, bypassing my routeonError
Beta Was this translation helpful? Give feedback.
All reactions