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 with a maintained framework #6

Open
ninewise opened this issue Nov 8, 2023 · 1 comment
Open

replace error-chain with a maintained framework #6

ninewise opened this issue Nov 8, 2023 · 1 comment

Comments

@ninewise
Copy link

ninewise commented Nov 8, 2023

At the time of writing, thiserror or anyhow seem fine. The former seems more similar to error-chain, but the latter seems easier to use overall.

Perhaps also check other dependencies.

@rien
Copy link
Collaborator

rien commented Nov 9, 2023

It seems that thiserror is better for libraries (when the resulting errrors should be easy to handle by implementors), while anyhow is better for applications (when you just want simple and clean user-facing 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

No branches or pull requests

2 participants