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

libstore/filetransfer: Fix error message for interrupted requests

Sometimes we are uploading and that's confusing.
This commit is contained in:
Sergei Zimmerman 2025-12-01 05:34:29 +03:00
parent 8be9507a88
commit 7eab0bf9aa
No known key found for this signature in database

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();
}