provider/aws: Improve error when failing to get S3 tags (#12759)

This commit is contained in:
Radek Simko 2017-03-16 14:43:54 +00:00 committed by GitHub
parent 2f38187036
commit 7692ac74a1
1 changed files with 1 additions and 1 deletions

View File

@ -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))