This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use anyhow for idiomatic error handling
Good for CLI applications, it provides some nicer ergonomics, features to inject context if needed, as well as non-trivial optimizations compared to using `Box<dyn Error>`. For the xtasks use case, I'm going with the simpler `anyhow` over something like `color-eyre`, which supports more complicated output formatting (but has other trade-offs). See: - dtolnay/anyhow#96
- Loading branch information
1 parent
9b64f9d
commit 32bdfb8
Showing
4 changed files
with
32 additions
and
30 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