mirror of
https://github.com/NixOS/nix.git
synced 2025-12-04 08:00: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:
commit
a922a42b33
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue