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
@pi0 Can we get some clarification as to whether errors should be thrown via throw new Error() or if it is preferred to throw createError() instead? createError can be useful for setting a custom status code, but I can see why it may not be preferred since it isn't as framework-agnostic. The docs do say to prefer throwing actual Error's, but just wanted to clarify if that is the same planned behavior for V2.
Environment
node: 22.6.0
bun: 1.1.33
Reproduction
Run example from repo:
h3/examples/errors.ts
Lines 20 to 25 in 7324eee
(log below)
Describe the bug
It's currently not possible to use
err.data
to pass additional data to client-side.Additional context
#823 (comment)
Logs
The text was updated successfully, but these errors were encountered: