Give a more detailed s3 failure error message

This commit is contained in:
Gabe Kangas 2023-04-01 13:15:35 -07:00
parent ae04b97a2a
commit b5dc6324f8
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -181,7 +181,7 @@ func (s *S3Storage) Save(filePath string, retryCount int) (string, error) {
return s.Save(filePath, retryCount+1)
}
return "", fmt.Errorf("Giving up on %s", filePath)
return "", fmt.Errorf("Giving up uploading %s to object storage %s", filePath, s.s3Endpoint)
}
return response.Location, nil