1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

James Bursa changed two error message to use the display-name instead of the

internally-used name.
This commit is contained in:
Daniel Stenberg 2004-05-07 18:56:33 +00:00
parent 686ba84128
commit 445c7791a7

View File

@ -236,11 +236,11 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
if(!conn->async.dns) { if(!conn->async.dns) {
/* a name was not resolved */ /* a name was not resolved */
if((timeout < 0) || (conn->async.status == ARES_ETIMEOUT)) { if((timeout < 0) || (conn->async.status == ARES_ETIMEOUT)) {
failf(data, "Resolving host timed out: %s", conn->host.name); failf(data, "Resolving host timed out: %s", conn->host.dispname);
rc = CURLE_OPERATION_TIMEDOUT; rc = CURLE_OPERATION_TIMEDOUT;
} }
else if(conn->async.done) { else if(conn->async.done) {
failf(data, "Could not resolve host: %s (%s)", conn->host.name, failf(data, "Could not resolve host: %s (%s)", conn->host.dispname,
ares_strerror(conn->async.status)); ares_strerror(conn->async.status));
rc = CURLE_COULDNT_RESOLVE_HOST; rc = CURLE_COULDNT_RESOLVE_HOST;
} }