Skip to content

Commit

Permalink
libstore: fixup unformatted uri when S3 getObject fails
Browse files Browse the repository at this point in the history
(cherry picked from commit b978fa8)
  • Loading branch information
cole-h authored and mergify[bot] committed Jan 10, 2025
1 parent fed54f3 commit 4a7c7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/filetransfer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ struct curlFileTransfer : public FileTransfer
auto s3Res = s3Helper.getObject(bucketName, key);
FileTransferResult res;
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.urls.push_back(request.uri);
callback(std::move(res));
Expand Down

0 comments on commit 4a7c7f1

Please sign in to comment.