aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/filetransfer.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-04-24 23:17:26 +0200
committereldritch horrors <pennae@lix.systems>2024-04-25 01:33:08 +0200
commit5e69f8aa3d5447e348f753f23748e4fe66306b6d (patch)
tree5cf41901b459efb3966159bbce280e95bf8dc09e /src/libstore/filetransfer.cc
parent38442e31230863df9eaa3ac98670e3d7357f2c26 (diff)
filetransfer: restore http status line reporting
this was broken in 75b62e52600a44b42693944b50638bf580a2c86e. Change-Id: If8583e802afbcde822623036bf41a9708fbc7c8d
Diffstat (limited to 'src/libstore/filetransfer.cc')
-rw-r--r--src/libstore/filetransfer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc
index f6717fc23..aa4a6d453 100644
--- a/src/libstore/filetransfer.cc
+++ b/src/libstore/filetransfer.cc
@@ -456,8 +456,8 @@ struct curlFileTransfer : public FileTransfer
: httpStatus != 0
? FileTransferError(err,
std::move(response),
- "unable to %s '%s': HTTP error %d%s",
- request.verb(), request.uri, httpStatus,
+ "unable to %s '%s': HTTP error %d (%s)%s",
+ request.verb(), request.uri, httpStatus, statusMsg,
code == CURLE_OK ? "" : fmt(" (curl error: %s)", curl_easy_strerror(code)))
: FileTransferError(err,
std::move(response),