You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line grunt.verbose.or.write(msg).error().error(e.message); seems wrong to me. Wouldn't you want the calls to error to be logged regardless of the verbose setting? As is, the errors will not be logged in verbose mode, which doesn't seem right. Or am I misunderstanding something?
The text was updated successfully, but these errors were encountered:
I think it's just an example showing how the API could be used rather than a likely situation. Although I'm always surprised with user preference of logging. Someone having a function named doSomethingThatThrowsAnExceptionOnError() is unlikely too. :)
We're always happy to take pull requests improving the docs if you have a better example that showcases the API though. Thanks!
The docs for grunt.log have this example at the bottom of the page:
The line
grunt.verbose.or.write(msg).error().error(e.message);
seems wrong to me. Wouldn't you want the calls toerror
to be logged regardless of the verbose setting? As is, the errors will not be logged in verbose mode, which doesn't seem right. Or am I misunderstanding something?The text was updated successfully, but these errors were encountered: