-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
) ## Summary Migrate all instances of `anyhow::Result` to `eyre::Result`. ## Background Sequencer was using `anyhow::Result`, which provides an unhelpful `Display` impl and contrasts our error handling in the rest of the codebase. This change is to flush out our error handling in the sequencer, except for those parts which necessitate using `anyhow`. ## Changes - Add eyre to sequencer's `cargo.toml`. - Migrate all instances of `anyhow::Result` to `eyre::Result`, except for those that touch cnidarium directly. - Create `anyhow_to_eyre()` and `eyre_to_anyhow()` helper functions for moving between the two without breaking the source chain. ## Testing Added unit tests to ensure `eyre` and `anyhow` source chains are maintained when converting between one another. ## Related Issues closes #1386
- Loading branch information
1 parent
0a83cae
commit ac7222e
Showing
50 changed files
with
890 additions
and
672 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.