libstore: fixup unformatted uri when S3 getObject fails

(cherry picked from commit b978fa8450)
This commit is contained in:
Cole Helbling 2024-12-19 10:16:47 -08:00 committed by Mergify
parent f8999cd4ee
commit 8f5ea8b8ca

View File

@ -767,7 +767,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));