Custom errors thrown in onRequest
are not usable when caught in onError
in 1.1.6
#779
Labels
bug
Something isn't working
What version of Elysia is running?
1.1.6
What platform is your computer?
Darwin 23.6.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
The
error
parameter to theonError
hook should be the error that was thrown.What do you see instead?
The
error
parameter is a function namedS1
and isn't the error that was thrown:Additional information
This works in 1.1.5, not in 1.1.6.
It works when
aot: false
.Have you try removing the
node_modules
andbun.lockb
and try again yet?Yes
The text was updated successfully, but these errors were encountered: