From 7692ac74a1ab0f3931ff0944c8c39d5186c89311 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Thu, 16 Mar 2017 14:43:54 +0000 Subject: [PATCH] provider/aws: Improve error when failing to get S3 tags (#12759) --- builtin/providers/aws/resource_aws_s3_bucket_object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_s3_bucket_object.go b/builtin/providers/aws/resource_aws_s3_bucket_object.go index f9828dce077b..968344f69e18 100644 --- a/builtin/providers/aws/resource_aws_s3_bucket_object.go +++ b/builtin/providers/aws/resource_aws_s3_bucket_object.go @@ -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))