-
Notifications
You must be signed in to change notification settings - Fork 3
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
throw vs cb if value #4
Comments
It's sort of a type annotation thing. But yeah, maybe we could fallback gracefully setting it to |
I would like to see the error (at least a warning if you wanna fallback). If you have a good reason to |
Yeah, in the CLI that makes sense. |
@kevva Just out of curiosity, do you know any link that tells you how to handle errors? This is a perfect example I think I would |
if (typeof val !== 'number' || isNaN(val) === 'true' || val < 0 || val > 1) Is probably checking too much at the same time. If it's a type error it's definitely |
99% of the times, |
👍 exactly what I think |
If I type
brightness 2
the whole stack is blowing in my consoleAny reason this is throwing an error not
cb
with an error?The text was updated successfully, but these errors were encountered: