Skip to content

Commit

Permalink
Merge pull request #2995 from alrs/fix-swallowed-vfs-error
Browse files Browse the repository at this point in the history
Fix swallowed err variable in vfs package
  • Loading branch information
chrislovecnm authored Jul 19, 2017
2 parents d2e5d20 + 4e847ce commit b94dd9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/pkg/vfs/s3context.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ func (s *S3Context) getRegionForBucket(bucket string) (string, error) {
var response *s3.GetBucketLocationOutput

s3Client, err := s.getClient(awsRegion)

if err != nil {
return "", fmt.Errorf("error connecting to S3: %s", err)
}
// Attempt one GetBucketLocation call the "normal" way (i.e. as the bucket owner)
response, err = s3Client.GetBucketLocation(request)

Expand Down

0 comments on commit b94dd9e

Please sign in to comment.