-
Notifications
You must be signed in to change notification settings - Fork 595
More informative log level error message #516
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
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/schniz/fnm/7Kf4AmvMxUqPYPUWjATkHDvQnXEi |
| "error" => Ok(Self::Error), | ||
| loglevel => Err(format!("I don't know the log level of {:?}", loglevel)), | ||
| loglevel => Err(format!( | ||
| "Unrecognized log level {:?}. Supported levels are 'quiet', 'info' and 'error'.", |
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.
I wonder if there's a way to automatically extract it. But anyway, I'm merging because it is important fix! thank you!
|
@Schniz any thoughts on how the docs could also include this information, as per my suggestions in the opening comment? |
|
@waldyrious looks like we can implement |
|
Ok, nice. Is that something you're planning to work on, or are you suggesting that I do it? 'Cause if it's the latter case, I will probably need a bit more guidance :) |
|
I will file a new issue with explanations what code should go where 😃 |
|
@waldyrious opened #523 |
Ideally, the docs should mention these as well, and I'd like to include that change in this PR, but I'm not sure how to insert the list into the current documentation format:
Any ideas, @Schniz? Maybe something like this?
Or this, to use the docopt syntax?