-
Notifications
You must be signed in to change notification settings - Fork 16
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
API needs to be able to report failure to detect, errors #21
Comments
I believe this is by design, when a failure occurs Adding a |
An If the endpoint uses detect().unwrap_or(Mode::Light) if desired. |
@frewsxcv What do you think? I think I brought this up at some point. |
Having it return a |
Isn't |
I don't understand. Can you give an example of how |
Lines 38 to 39 in 77ae434
That variant can be returned when the color-scheme is unknown for any reason. But if we want to give more info to the API users, then wrapping |
Right now if something goes wrong — can't detect mode, error happens during detection attempt —
detect()
returnsMode::Light
. Would be a lot better to provide some version of this that could return aResult
.The text was updated successfully, but these errors were encountered: