-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve error message for getaddrinfo failure #8498
Conversation
Runtime error messages should be concise and describe the problem only as much as necessary. This seems to extensive. The only useful improvement IMO is to add context information to all errors, not just for |
BTW I tried this in several programming languages and most simply just pass the error message from getaddrinfo with no context information. The only good message I found was in Golang:
It's great to show which DNS server was used. |
Whoa, golang doing their own DNS resolution, nice. |
I'd go with a very concise message:
|
OK I didn't see EAI_ADDRFAMILY defined so didn't include that but did some for the rest, please review, thank you! |
Co-Authored-By: Sijawusz Pur Rahnama <sija@sija.pl>
Looks like this breaks some other specs, I'll check those out. |
OK ready for review, thank you. |
Thank you @rdp ❤️ |
Thanks!
…On Tue, Jan 7, 2020 at 10:30 AM Johannes Müller ***@***.***> wrote:
Thank you @rdp <https://github.com/rdp> ❤️
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8498?email_source=notifications&email_token=AAADBUCQQWKTLJKXOFSJ34TQ4S3Z3A5CNFSM4JP5OJW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIJUPWY#issuecomment-571688923>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADBUHR6C6YOLXC52SLQ5TQ4S3Z3ANCNFSM4JP5OJWQ>
.
|
…s may be connected to DNS #8262
See discussion in #8262
I wasn't sure if the hint were appropriate or not but maybe useful to someone? :)