X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmain.c;h=3a0525034aa09937b6b4f585ab0a2ee1f7b61c30;hp=80ecc3dddf583dd370e8acead3c902eaf81ae920;hb=0db305126bd05f0739d83d36634772cf44851a65;hpb=366dbedf1b591759bab08e0f3eaf0af07c1936ca diff --git a/src/main.c b/src/main.c index 80ecc3dd..3a052503 100644 --- a/src/main.c +++ b/src/main.c @@ -1347,6 +1347,7 @@ outputting to a regular file.\n")); char *error = url_error (*t, url_err); logprintf (LOG_NOTQUIET, "%s: %s.\n",*t, error); xfree (error); + inform_exit_status (URLERROR); } else { @@ -1387,7 +1388,9 @@ outputting to a regular file.\n")); if (opt.input_filename) { int count; - retrieve_from_file (opt.input_filename, opt.force_html, &count); + int status; + status = retrieve_from_file (opt.input_filename, opt.force_html, &count); + inform_exit_status (status); if (!count) logprintf (LOG_NOTQUIET, _("No URLs found in %s.\n"), opt.input_filename);