Index: lib/hostares.c
===================================================================
RCS file: /repository/curl/lib/hostares.c,v
retrieving revision 1.3
diff -u -r1.3 hostares.c
--- lib/hostares.c	27 Apr 2004 13:56:23 -0000	1.3
+++ lib/hostares.c	4 May 2004 11:27:12 -0000
@@ -151,8 +151,12 @@
 
   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->host.name,
+            ares_strerror(conn->async.status));
+
       return CURLE_COULDNT_RESOLVE_HOST;
+    }
     *dns = conn->async.dns;
   }
 

