-
Notifications
You must be signed in to change notification settings - Fork 4
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
Command-line error handling is incoherent (and misses certain issues) #104
Comments
Looking closer, the problem is not actually with the DNS resolution but rather missing error handling / logging. When manually adding an error message this is what actually happens:
The error simply isn't shown because in
|
OK, this is much more complicated than I anticipated. We now have three different ways of communicating errors to the user:
In this particular scenario (argument / command line parameter parsing error) none of the aforementioned methods trigger because:
IMHO the way we handle logging in conjunction with @els0r What's your take on this? Is this just a relic from the past or am I missing something? |
Incoherent is spot on. As for why we don't log the error in the As for just logging with |
See #110 for a plain CLI logger that can be used from |
When testing #43 I encountered that when providing
-resolve
to goQuery nothing happens (as in: the program returns immediately, without printing anything). When calling without that option all works fine.DoD
Fix underlying issue and review DNS resolutionThe text was updated successfully, but these errors were encountered: