-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Description
When getaddrinfo() fails, the wrapper produces a custom io::Error using gai_strerror(). There's one variant which essentially says just look at errno.
EAI_SYSTEM system error returned in errno
But libstd doesn't do that which leads to very unhelpful errors.
Io(Error { repr: Custom(Custom { kind: Other, error: StringError("failed to lookup address information: System error") }) }))It would be great if the error value could be checked for EAI_SYSTEM, provide the strerror() message in the StringError value, and set Kind appropriately.
Metadata
Metadata
Assignees
Labels
No labels