mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Print the actual error message when parsing of redirection URL fails.
This commit is contained in:
parent
212eb1ddaf
commit
177b6ee8fd
@ -1,3 +1,8 @@
|
||||
2001-11-24 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* retr.c (retrieve_url): When the redirection URL doesn't parse,
|
||||
print the correct error message rather than "UNKNOWN".
|
||||
|
||||
2001-11-24 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* progress.c (bar_finish): If the timer didn't record any time
|
||||
|
@ -326,10 +326,11 @@ retrieve_url (const char *origurl, char **file, char **newloc,
|
||||
mynewloc = construced_newloc;
|
||||
|
||||
/* Now, see if this new location makes sense. */
|
||||
newloc_struct = url_parse (mynewloc, NULL);
|
||||
newloc_struct = url_parse (mynewloc, &up_error_code);
|
||||
if (!newloc_struct)
|
||||
{
|
||||
logprintf (LOG_NOTQUIET, "%s: %s.\n", mynewloc, "UNKNOWN");
|
||||
logprintf (LOG_NOTQUIET, "%s: %s.\n", mynewloc,
|
||||
url_error (up_error_code));
|
||||
url_free (newloc_struct);
|
||||
url_free (u);
|
||||
if (redirections)
|
||||
|
Loading…
Reference in New Issue
Block a user