You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you can specify an error handler for deno and bun by using runtime specific options (as described in https://srvx.unjs.io/guide/options). The nodejs runtime doesn't have a similar option.
Describe the feature
Currently you can specify an error handler for deno and bun by using runtime specific options (as described in https://srvx.unjs.io/guide/options). The nodejs runtime doesn't have a similar option.
On nodejs we have to manually catch the error and return a response, but it's not as concise as the other runtime.
onError
or similar option to the serve api. ThisonError
would be runtime agnostic and would work for deno, bun and nodejs.error
hook as a pluginAdditional information
The text was updated successfully, but these errors were encountered: