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

Better Error Handling and Error Messages #332

Open
sunmy2019 opened this issue Feb 15, 2024 · 0 comments
Open

Better Error Handling and Error Messages #332

sunmy2019 opened this issue Feb 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sunmy2019
Copy link
Contributor

sunmy2019 commented Feb 15, 2024

Feature Proposed

I want to improve the quality of error messages and reduce the use of panic.

  1. convert unwrap() to return anyhow::Error with informative contexts.
  2. convert unwrap() to expect(...) for deadly scenarios.
  3. remove unwrap() when it can be proved with pattern matching.

Use Case
This would increase its usability as a library and convey clearer messages to the users.

Known pitfalls
potentially increase binary size

@sunmy2019 sunmy2019 added the enhancement New feature or request label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant