-
Notifications
You must be signed in to change notification settings - Fork 7
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
Minor Error API Suggestions #1
Comments
Pulling this thread further - it looks like several methods promise to only return one of the variants, e.g. |
Hi, thanks so much for your interest and taking the time to look through everything. I'm a bit busy right now but I'll try to find some time to go over your PRs. I will say ahead that I would like to keep the amount of code to a minimum, so I think specifically stuff like pulling the ConditionalNoEffectError into its own struct is probably something that I don't think is worth having the extra code for unless you have a specific use-case for it. I do think (from briefly looking) that the unsupported os code can be deduplicated though. |
A dedicated error struct enables a narrower return type on |
Really excited to see this crate, and very impressed by your work so far.
Reading over the code, I see a few places where the
ExtraSafeError
could be tweaked to align cleanly with Rust's naming practices.Error
- this is consistent with howstd::io::Error
,reqwest::Error
and others behave.Error
from the variant names, since it's redundantConditionalNoEffectError
which includes named accessors for the fieldsThe text was updated successfully, but these errors were encountered: