Skip to content

Conversation

canndrew
Copy link
Contributor

@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
Contributor 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