-
Notifications
You must be signed in to change notification settings - Fork 35
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
Alternative to Failure for Error Handling #75
Comments
(I'm the maintainer of I agree that
So I think that |
Ah, @emk you are right about In this case it has the same desired advantage for my situation because all |
Hey there, I was wondering if you had considered anyhow for error types.
I am using Anyhow for my project which requires that errors implement
std::error::Error
, andFailure
's don't so I have to.map_err(Fail::compat)
for every Docker error that I want to handle with the?
operator.I think that Anyhow is a more pragmatic replacement for Failure which grants lots of the same advantages while being better integrated with other libraries, because Anyhow errors do implement
std::error::Error
and are therefore compatible with any other library that takesError
s.Anyway, this is just a friendly suggestion. I'd like to hear your thoughts. 🙂
The text was updated successfully, but these errors were encountered: