mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
libstore: fixup unformatted uri when S3 getObject fails
This commit is contained in:
parent
f0c1262d23
commit
b978fa8450
1 changed files with 1 additions and 1 deletions
|
@ -767,7 +767,7 @@ struct curlFileTransfer : public FileTransfer
|
||||||
auto s3Res = s3Helper.getObject(bucketName, key);
|
auto s3Res = s3Helper.getObject(bucketName, key);
|
||||||
FileTransferResult res;
|
FileTransferResult res;
|
||||||
if (!s3Res.data)
|
if (!s3Res.data)
|
||||||
throw FileTransferError(NotFound, "S3 object '%s' does not exist", request.uri);
|
throw FileTransferError(NotFound, {}, "S3 object '%s' does not exist", request.uri);
|
||||||
res.data = std::move(*s3Res.data);
|
res.data = std::move(*s3Res.data);
|
||||||
res.urls.push_back(request.uri);
|
res.urls.push_back(request.uri);
|
||||||
callback(std::move(res));
|
callback(std::move(res));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue