On HTTP errors, also show the curl error
This is a hopefully temporary measure to diagnose the intermittent "HTTP error 200" failures.
This commit is contained in:
parent
4425a5c547
commit
e8c43abd9a
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ struct CurlDownloader : public Downloader
|
|||
code == CURLE_ABORTED_BY_CALLBACK && _isInterrupted
|
||||
? DownloadError(Interrupted, format("download of ‘%s’ was interrupted") % request.uri)
|
||||
: httpStatus != 0
|
||||
? DownloadError(err, format("unable to download ‘%s’: HTTP error %d") % request.uri % httpStatus)
|
||||
? DownloadError(err, format("unable to download ‘%s’: HTTP error %d (curl error: %s)") % request.uri % httpStatus % curl_easy_strerror(code))
|
||||
: DownloadError(err, format("unable to download ‘%s’: %s (%d)") % request.uri % curl_easy_strerror(code) % code);
|
||||
|
||||
/* If this is a transient error, then maybe retry the
|
||||
|
|
Loading…
Reference in a new issue