Skip to content

Use anyhow::Error in place of String #130

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

canndrew
Copy link

@canndrew canndrew commented May 5, 2025

Use the anyhow crate for errors where we're currently just using String. This makes it easier to add context to errors and avoids the need to convert to a string when bubbling up errors.

Also box the Error field in RichError to reduce its size and keep clippy happy.

This PR builds off of #129.

canndrew added 2 commits May 5, 2025 21:47
Add clap as a dependency and use it to parse the command line arguments.
Also add a --debug cli option to include debug symbols.
Use the anyhow crate for errors where we're currently just using String.
This makes it easier to add context to errors and avoids the need to
convert to a string when bubbling up errors.

Also box the `Error` field in `RichError` to reduce its size and keep
clippy happy.
@canndrew canndrew marked this pull request as draft May 5, 2025 14:48
@canndrew
Copy link
Author

canndrew commented May 5, 2025

I'll fix the changes on the library side to use a new error type rather than anyhow then re-open this.

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

Successfully merging this pull request may close these issues.

1 participant