From 508da1ec108632efded8a9e947c13e6e7a9343b3 Mon Sep 17 00:00:00 2001 From: netjunki Date: Wed, 15 Feb 2017 15:07:55 -0800 Subject: [PATCH] provider/aws: add bucket name to delete error notification (#11952) * provider/aws: add bucket name to delete error notification * cast Get; use %q instead of '%s' --- builtin/providers/aws/resource_aws_s3_bucket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_s3_bucket.go b/builtin/providers/aws/resource_aws_s3_bucket.go index a8c5f199d..f6b883da5 100644 --- a/builtin/providers/aws/resource_aws_s3_bucket.go +++ b/builtin/providers/aws/resource_aws_s3_bucket.go @@ -980,7 +980,7 @@ func resourceAwsS3BucketDelete(d *schema.ResourceData, meta interface{}) error { return resourceAwsS3BucketDelete(d, meta) } } - return fmt.Errorf("Error deleting S3 Bucket: %s", err) + return fmt.Errorf("Error deleting S3 Bucket: %s %q", err, d.Get("bucket").(string)) } return nil }