Merge from accidental commit to RELENG_5:

Correctly identify the host and port values on a failed
  getaddrinfo lookup.
This commit is contained in:
Colin Percival 2006-01-27 14:42:15 +00:00
parent 78b6fc8d2d
commit b258da0fa9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154909

View File

@ -326,7 +326,7 @@ main(int argc, char *argv[])
error = getaddrinfo(env_HTTP_PROXY ? env_HTTP_PROXY : servername,
env_HTTP_PROXY ? proxyport : "http", &hints, &res0);
if (error)
errx(1, "%s: host = %s, port = %s",
errx(1, "host = %s, port = %s: %s",
env_HTTP_PROXY ? env_HTTP_PROXY : servername,
env_HTTP_PROXY ? proxyport : "http",
gai_strerror(error));