1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-04 16:10:59 +01:00

Merge pull request #14678 from NixOS/fix-error-message-download-filetransfer

libstore/filetransfer: Fix error message for interrupted requests
This commit is contained in:
John Ericson 2025-12-01 03:39:25 +00:00 committed by GitHub
commit a922a42b33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,7 +152,8 @@ struct curlFileTransfer : public FileTransfer
curl_slist_free_all(requestHeaders);
try {
if (!done)
fail(FileTransferError(Interrupted, {}, "download of '%s' was interrupted", request.uri));
fail(FileTransferError(
Interrupted, {}, "%s of '%s' was interrupted", Uncolored(request.noun()), request.uri));
} catch (...) {
ignoreExceptionInDestructor();
}