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:
parent
8be9507a88
commit
7eab0bf9aa
1 changed files with 2 additions and 1 deletions
|
|
@ -152,7 +152,8 @@ struct curlFileTransfer : public FileTransfer
|
||||||
curl_slist_free_all(requestHeaders);
|
curl_slist_free_all(requestHeaders);
|
||||||
try {
|
try {
|
||||||
if (!done)
|
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 (...) {
|
} catch (...) {
|
||||||
ignoreExceptionInDestructor();
|
ignoreExceptionInDestructor();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue