Skip to content

Commit

Permalink
propagate error in case of failed s3 download
Browse files Browse the repository at this point in the history
  • Loading branch information
prkhrkat committed Aug 1, 2024
1 parent d496143 commit 5a12307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blob-storage/AwsS3Blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func downLoadFromS3(file *os.File, request *BlobStorageRequest, sess *session.Se
numBytes, err := downloader.Download(file, input)
if err != nil {
log.Println("Couldn't download cache file")
return false, 0, nil
return false, 0, err
}
log.Println("downloaded ", file.Name(), numBytes, " bytes ")

Expand Down

0 comments on commit 5a12307

Please sign in to comment.