Skip to content

Commit

Permalink
Merge pull request #349 from NathanBaulch/patch-1
Browse files Browse the repository at this point in the history
Minor resource_elasticsearch_index error message fix
  • Loading branch information
phillbaker committed May 16, 2023
2 parents 8318c70 + 3697403 commit c4ba861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es/resource_elasticsearch_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ func resourceElasticsearchIndexDelete(d *schema.ResourceData, meta interface{})
// check to see if there are documents in the index
allowed := allowIndexDestroy(name, d, meta)
if !allowed {
return fmt.Errorf("There are documents in the index (or the index could not be , set force_destroy to true to allow destroying.")
return fmt.Errorf("There are documents in the index (or the index could not be found), set force_destroy to true to allow destroying.")
}

esClient, err := getClient(meta.(*ProviderConf))
Expand Down

0 comments on commit c4ba861

Please sign in to comment.