From 5e69f8aa3d5447e348f753f23748e4fe66306b6d Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Wed, 24 Apr 2024 23:17:26 +0200 Subject: [PATCH] filetransfer: restore http status line reporting this was broken in 75b62e52600a44b42693944b50638bf580a2c86e. Change-Id: If8583e802afbcde822623036bf41a9708fbc7c8d --- src/libstore/filetransfer.cc | 4 ++-- 1 file 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),