-
Notifications
You must be signed in to change notification settings - Fork 163
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
Error Management: switch to Failure
? (Disposition: No)
#59
Comments
I've used You can see a simple example of using There are a few things there that are silly because the In the meantime, the recommended workaround is to define a new trait that converts You wind up writing |
I think we wouldn't want to use |
Would love to get PRs to move to failure, btw. |
Yeah, that's what I was suggesting, just deriving |
So with the new |
Yes, my understanding is that
This was only in addr2line afaik, and that usage has been removed. Adding failure support to gimli would be good though. |
Ok I think we should get the error story figured out. I'm leaning towards sticking with current error system, not pulling on another dep, as it's compatible with downstream users using failure. |
Failure
?Failure
? (Current disposition: Leave as is)
Failure
? (Current disposition: Leave as is)Failure
? (Disposition: No)
Failure is unmaintained and deprecated now. https://github.com/rust-lang-nursery/failure |
So I've been holding off on error libraries, but
Failure
genuinely looks exciting and cool.I am ok with dynamic allocation, since the parser allocates already, and parsing binaries generally won't be in a hot loop, and if it is, it'll likely be dwarfed by io reads anyway.
This might also be an opportunity to provide better error messages because errors in goblin aren't so great. but this is mostly because of scroll error messages sucking pretty hard (but that's because it supports no-std).
The text was updated successfully, but these errors were encountered: