about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-01-24T19·13+0100
committerEelco Dolstra <edolstra@gmail.com>2017-01-26T19·40+0100
commite8c43abd9aed4d88f2cce9ebc97de73930dffdfb (patch)
treefebbd82df582b8b52e208600142e16c8592e1cae /src
parent4425a5c5470e4f26213cfecac404fed88d0f35aa (diff)
On HTTP errors, also show the curl error
This is a hopefully temporary measure to diagnose the intermittent
"HTTP error 200" failures.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/download.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index 8030e83b0dd5..074e0ca6642a 100644
--- a/src/libstore/download.cc
+++ b/src/libstore/download.cc
@@ -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