aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hostip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 5c3a71841..8a2b1a218 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -466,8 +466,10 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
if(!conn->async.dns) {
/* a name was not resolved */
- if(conn->async.done)
+ if(conn->async.done) {
+ failf(data, "Could not resolve host: %s", conn->name);
rc = CURLE_COULDNT_RESOLVE_HOST;
+ }
else
rc = CURLE_OPERATION_TIMEDOUT;