]> sjero.net Git - wget/commitdiff
Warn about host resolution failure.
authorMicah Cowan <micah@cowan.name>
Wed, 3 Oct 2007 05:12:04 +0000 (22:12 -0700)
committerMicah Cowan <micah@cowan.name>
Wed, 3 Oct 2007 05:12:04 +0000 (22:12 -0700)
src/ChangeLog
src/connect.c
src/http.c

index b53f42609110d9d66dd6cee2c4fe41e671292653..c6fc6564c1ae7dd5570d5603b99b5a38d17e8689 100644 (file)
@@ -5,6 +5,12 @@
        potentially long-running sessions. Based on suggestions by Saso
        Tomat <miskox@hotmail.com> and Steven M. Schweda
        <sms@antinode.org>.
+       * http.c (gethttp): Warn about host lookup failures. Adjusted
+       from Stephen Gildea's patch.
+
+2007-10-02  Stephen Gildea  <stepheng+wget@gildea.com>
+
+       * connect.c (connect_to_host): Warn about host lookup failures.
 
 2007-09-25  Micah Cowan  <micah@cowan.name>
 
index 5e7ccee671ecc4cec86211189ac90c904618d8b5..6664c0afaa8c81b776bed17a1407a17626539205 100644 (file)
@@ -362,7 +362,12 @@ connect_to_host (const char *host, int port)
 
  retry:
   if (!al)
-    return E_HOST;
+    {
+      logprintf (LOG_NOTQUIET,
+                 _("%s: unable to resolve host address `%s'\n"),
+                 exec_name, host);
+      return E_HOST;
+    }
 
   address_list_get_bounds (al, &start, &end);
   for (i = start; i < end; i++)
index e2cee5894db141ef34ce18ddd9985bee6a2331a1..853132dc396d9fa52458dc30c49e5d02ef975628 100644 (file)
@@ -1632,6 +1632,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
       if (host_lookup_failed)
         {
           request_free (req);
+          logprintf(LOG_NOTQUIET,
+                    _("%s: unable to resolve host address `%s'\n"),
+                    exec_name, relevant->host);
           return HOSTERR;
         }