Skip to content
Snippets Groups Projects
Commit 4eb2a6c9 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make a more descriptive error message when CURLE_HTTP_RETURNED_ERROR is

returned
parent 2563731c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment