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

Replace error-chain by thiserror #4

Closed
PaulGrandperrin opened this issue Dec 8, 2020 · 0 comments · Fixed by #5
Closed

Replace error-chain by thiserror #4

PaulGrandperrin opened this issue Dec 8, 2020 · 0 comments · Fixed by #5

Comments

@PaulGrandperrin
Copy link
Contributor

PaulGrandperrin commented Dec 8, 2020

Because of this issue in error-chain rust-lang-deprecated/error-chain#240 , errors from this crate are impossible to propagate when the user is using failures or anyhow and maybe others.

More info can be found here:

Moreover error-chain is not maintained anymore and the fix has, and will never be merged: rust-lang-deprecated/error-chain#241

thiserror is the recommend crate to generate errors from libraries: https://nick.groenen.me/posts/rust-error-handling/

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

Successfully merging a pull request may close this issue.

1 participant