Sun 30 Sep 2007 05:38:47 PM UTC, original submission:
Stephen Gildea wrote the following to the patches ML:
The --non-verbose option to wget outputs almost exactly the amount of
status I want: a one-line success or failure message. But it does the
wrong thing in one common failure case: if the HTTP server hostname
cannot be resolved, wget fails silently. That's really confusing.
This common case deserves at least some message and ideally its own
error message. The following small patch adds one. This diff is
against the current SVN tree, post 1.10.2.
< Stephen
+verbose+
Index: src/http.c
===================================================================
--- src/http.c (revision 2387)
+++ src/http.c (working copy)
@@ -1197,6 +1197,9 @@ persistent_available_p (const char *host
al = lookup_host (host, 0);
if (!al)
{
+ logprintf (LOG_NOTQUIET,
+ _("%s: unable to resolve persistent host `%s'\n"),
+ exec_name, host);
*host_lookup_failed = true;
return false;
}
Index: src/connect.c
===================================================================
--- src/connect.c (revision 2387)
+++ src/connect.c (working copy)
@@ -362,7 +362,12 @@ connect_to_host (const char *host, int p
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++)
-verbose-
|