Provide exit code in CouldNotFetchDns exception #123
dennis-koster
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
Thanks for the detailed report, @dennis-koster! This is fixed in v2.8.0. catch (CouldNotFetchDns $exception) {
$exception->exitCode; // e.g. 9
}The message now reads like: The Done in #124. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Last night a couple occurrences were logged of the
CouldNotFetchDnsexception.It makes it seem as if the message
;; IDN output support not enabledwas the error, which sent me spiralling trying to debug that message. It turns out that message is just a warning that seems tricky to get rid off.The exception was thrown because an unsuccessful exit code was returned by
dig, but that exit code is not provided in the exception. This makes it quite hard / impossible for me to figure out what the actual error was.I think it would be helpful to provide the exit code in the exception and potentially also just ignore
;; IDN output support not enabledas an error.All reactions