Replies: 1 comment
-
I've done some more investigation and this really seems like a bug in Hono because HTTPExceptions also aren't caught at all. It's probably hitting some weird edge case, I'll try to make a reproduction soon |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add a global error handler to my app with
app.onError
. But my error handler doesn't run with the JSX renderer middleware in the mix (throwing an error from a component just breaks the server completely). The handlers are ordered like this: generic stuff liketrimTrailingSlash
, thenapp.onError
, thenjsxRenderer
, then routes (but I tried a bunch of different orderings)I'm not even sure if
onError
is the correct way to handle errors like this - the docs also mention making a middleware that checksc.error
.I'm using Deno 1.45.5 if that helps.
Beta Was this translation helpful? Give feedback.
All reactions