Skip to content

Commit

Permalink
provider/aws: Improve error when failing to get S3 tags (#12759)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Mar 16, 2017
1 parent 2f38187 commit 7692ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/providers/aws/resource_aws_s3_bucket_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func resourceAwsS3BucketObjectRead(d *schema.ResourceData, meta interface{}) err
Key: aws.String(key),
})
if err != nil {
return err
return fmt.Errorf("Failed to get object tags (bucket: %s, key: %s): %s", bucket, key, err)
}
d.Set("tags", tagsToMapS3(tagResp.TagSet))

Expand Down

0 comments on commit 7692ac7

Please sign in to comment.