diff options
Diffstat (limited to 'lib/hostares.c')
-rw-r--r-- | lib/hostares.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hostares.c b/lib/hostares.c index 35640d5b7..02212a2c3 100644 --- a/lib/hostares.c +++ b/lib/hostares.c @@ -151,8 +151,11 @@ CURLcode Curl_is_resolved(struct connectdata *conn, if(conn->async.done) { /* we're done, kill the ares handle */ - if(!conn->async.dns) + if(!conn->async.dns) { + failf(data, "Could not resolve host: %s (%s)", conn->name, + ares_strerror(conn->async.status)); return CURLE_COULDNT_RESOLVE_HOST; + } *dns = conn->async.dns; } |