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

Use anyhow for prettier errors on the console #46

Open
FichteFoll opened this issue Aug 2, 2024 · 2 comments
Open

Use anyhow for prettier errors on the console #46

FichteFoll opened this issue Aug 2, 2024 · 2 comments

Comments

@FichteFoll
Copy link
Contributor

FichteFoll commented Aug 2, 2024

Since this application does not have a GUI at the moment but has a comparatively wide target audience, some clearer error message such as those provided by anyhow instead of the default output of panics on Result::unwrap (like in #33) might be helpful for users to figure out their issues more quickly (on their own).

Just an idea I'm putting up here.

Also, implementing proper bubbling of Errs until the main method will also be beneficial when a GUI is eventually added.

@IceDynamix
Copy link
Owner

related IceDynamix/reliquary#3

@FichteFoll
Copy link
Contributor Author

Ah, I didn't even notice there was a separate library project. Indeed, reliquary should be using thiserror, whereas anyhow makes more sense for reliquary-archiver as the user-facing component.

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