From 149fc56e31749edb0fd4544026914de3b7adec87 Mon Sep 17 00:00:00 2001 From: Graham Davison Date: Thu, 8 Feb 2024 11:19:33 -0800 Subject: [PATCH] Linting fix --- internal/service/s3/bucket.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/service/s3/bucket.go b/internal/service/s3/bucket.go index 0b0544d06a8..acb38a4e7de 100644 --- a/internal/service/s3/bucket.go +++ b/internal/service/s3/bucket.go @@ -774,7 +774,9 @@ func resourceBucketCreate(ctx context.Context, d *schema.ResourceData, meta inte return sdkdiag.AppendErrorf(diags, "waiting for S3 Bucket (%s) create: %s", d.Id(), err) } - bucketCreateTags(ctx, conn, d.Id(), getTagsIn(ctx)) + if err := bucketCreateTags(ctx, conn, d.Id(), getTagsIn(ctx)); err != nil { + return sdkdiag.AppendErrorf(diags, "setting S3 Bucket (%s) tags: %s", d.Id(), err) + } return append(diags, resourceBucketUpdate(ctx, d, meta)...) }