aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-06-02 13:14:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-06-02 13:14:57 +0000
commit4eb2a6c9a3af4cb015f373cc4b39aabba507a000 (patch)
tree8ac98c510952ad635563f827be085a34f591f93a
parent2563731c4da3728850fb4af37aadddc11ddc3c12 (diff)
make a more descriptive error message when CURLE_HTTP_RETURNED_ERROR is
returned
-rw-r--r--lib/transfer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index c321da1ee..f58db35bf 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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;
}