Replies: 1 comment
-
Hey! Can you provide a more simple example that allow us to reproduce the issue locally? |
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've got the following
errorHandler
registeredI know it is being called because I can see the logs when I run my unit test, but when I assert the result I have the original
FastifyError
but if I change the status to anything
>400
I get the expected error.if I remove the
errorHandler
I get the same as if I had handled the errorThis is a legittmate validation error and expect to be able to send back Bad Request to the client?
Then only thing that I can see in the docs is maybe a bug with the validation error handling?
https://www.fastify.io/docs/latest/Reference/Validation-and-Serialization/#error-handling
Beta Was this translation helpful? Give feedback.
All reactions