Improve getaddrinfo error reporting