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 #35

Open
f-forcher opened this issue Aug 3, 2024 · 0 comments
Open

Better error handling #35

f-forcher opened this issue Aug 3, 2024 · 0 comments
Labels
enhancement New feature or request Rust Rust-related item

Comments

@f-forcher
Copy link
Owner

f-forcher commented Aug 3, 2024

  • Reduce or eliminate unnecessary unwrap/expect use in the code
  • Change fallible functions' signatures to Result<...>

Longer term:

  • Switch from anyhow crate to custom errors, eg with thiserror crate. This enables better control over the error types and nehaviour, such as the possibility to statically disable expensive backtraces for errors that do not need it, and to attach and filter context to errors.
@f-forcher f-forcher added enhancement New feature or request Rust Rust-related item labels Aug 3, 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 Rust Rust-related item
Projects
None yet
Development

No branches or pull requests

1 participant