Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: unwrap transform errors #885

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

crishoj
Copy link
Contributor

@crishoj crishoj commented Oct 19, 2024

Errors thrown in transform decoding would not get picked up by app.handleError because Typobox wraps them in a TransformDecodeError.

This proposal unwraps the error, allowing e.g. NotFoundError thrown in transform decoding to result in HTTP 404.

Fixes #882

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Process Validation Error Code Mismatch: Incorrect Status Code for Any Thrown Error
2 participants