make a more descriptive error message when CURLE_HTTP_RETURNED_ERROR is
returned
This commit is contained in:
		@@ -531,7 +531,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
 | 
				
			|||||||
                  /* If we have been told to fail hard on HTTP-errors,
 | 
					                  /* If we have been told to fail hard on HTTP-errors,
 | 
				
			||||||
                     here is the check for that: */
 | 
					                     here is the check for that: */
 | 
				
			||||||
                  /* serious error, go home! */
 | 
					                  /* 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;
 | 
					                  return CURLE_HTTP_RETURNED_ERROR;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user