Skip to content

Commit

Permalink
report bucket name when not empty while deleting (GoogleCloudPlatform…
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored and Nathan Klish committed May 18, 2020
1 parent 3124f56 commit 2cf3c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/terraform/resources/resource_storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ func resourceStorageBucketDelete(d *schema.ResourceData, meta interface{}) error
}

if !d.Get("force_destroy").(bool) {
deleteErr := errors.New("Error trying to delete a bucket containing objects without `force_destroy` set to true")
deleteErr := fmt.Errorf("Error trying to delete bucket %s containing objects without `force_destroy` set to true", bucket)
log.Printf("Error! %s : %s\n\n", bucket, deleteErr)
return deleteErr
}
Expand Down

0 comments on commit 2cf3c71

Please sign in to comment.