]> granicus.if.org Git - curl/commitdiff
make a more descriptive error message when CURLE_HTTP_RETURNED_ERROR is
authorDaniel Stenberg <daniel@haxx.se>
Mon, 2 Jun 2003 13:14:57 +0000 (13:14 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 2 Jun 2003 13:14:57 +0000 (13:14 +0000)
returned

lib/transfer.c

index c321da1ee56dae4c4e06d8525f40daaf895b3a32..f58db35bf53598a9327f9f1d2ab4bf99bca42052 100644 (file)
@@ -531,7 +531,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
                   /* If we have been told to fail hard on HTTP-errors,
                      here is the check for that: */
                   /* serious error, go home! */
-                  failf (data, "The requested file was not found");
+                  failf (data, "The requested URL returned error: %d",
+                         k->httpcode);
                   return CURLE_HTTP_RETURNED_ERROR;
                 }