-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
adds anyhow where result used to be #860
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good thanks. Just left some comments to help you get the tests working again.
There does still remain the question if we should be considering using thiserror
instead of anyhow
if we are exposing forc
as a library. But this is still an upgrade from the current error handling and can be addressed in a separate PR if we decide to move to thiserror
.
Ahh was hoping to have this addressed after landing #825 but I should have mentioned so in the issue 🥲 if this happens to land first I can rebase on top no worries 👍 I would like to see |
I think it probably looked tidier the way you first had it, eg:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for addressing those changes.
Intended to close #851
I've gone through and replaced any instance I could find of
Result<(), String>
withanyhow
, along with error messages.