Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Use error from FromData Outcome::Failure return in a catcher #380

Closed
geauxvirtual opened this issue Aug 11, 2017 · 1 comment
Closed

Use error from FromData Outcome::Failure return in a catcher #380

geauxvirtual opened this issue Aug 11, 2017 · 1 comment
Labels
request Request for new functionality

Comments

@geauxvirtual
Copy link

Version: 0.3.0

When implementing FromData, Outcome::Failure is a valid return type that takes a status and an error. Looking through the code, it appears any error returned with Outcome::Failure from a FromData implementation is discarded with the status being used to match a catcher. It would be useful to be able to pass errors out of FromData to be returned to the user through a catcher for that status code.

@SergioBenitez SergioBenitez added the request Request for new functionality label Aug 22, 2017
@SergioBenitez
Copy link
Member

This would be handled by #749. As such, closing this out to track there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Request for new functionality
Projects
None yet
Development

No branches or pull requests

2 participants