aws/provider: aws_s3_bucket doesn't report bucket name when encountering tag value problems

This commit is contained in:
Ben Lau 2017-02-20 11:59:47 -08:00
parent 33f41ab7af
commit a7bbff6c1e
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ func resourceAwsS3BucketCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsS3BucketUpdate(d *schema.ResourceData, meta interface{}) error {
s3conn := meta.(*AWSClient).s3conn
if err := setTagsS3(s3conn, d); err != nil {
return err
return fmt.Errorf("%s %q", err, d.Get("bucket").(string))
}
if d.HasChange("policy") {