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

using anyhow::Error #23

Open
ghost opened this issue Aug 1, 2020 · 1 comment
Open

using anyhow::Error #23

ghost opened this issue Aug 1, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 1, 2020

Why use anyhow::Error, I don't get why it is needed, it leaks the interface so I have to add anyhow to my dependencies if I want to handle errors from xactor.Also, I would like to not have to learn about "anyhow" just to use xactor. I think a concrete Error struct would be better maybe?

@hoodie
Copy link
Contributor

hoodie commented Oct 19, 2021

I don't think anyhow is intended for libraries. thiserror is a nice "non-leaking" lib that produces typesafe errors. I think xactor should probably switch.

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

1 participant