+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
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)