From 323b9f8c59ec83235eac121362bdfee1bafa41e8 Mon Sep 17 00:00:00 2001 From: Eliot Boutherin Date: Mon, 5 Sep 2022 21:41:38 +0700 Subject: [PATCH] Fix create index error msg --- mongodbatlas/resource_mongodbatlas_search_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongodbatlas/resource_mongodbatlas_search_index.go b/mongodbatlas/resource_mongodbatlas_search_index.go index 3db152c600..7b7222aec9 100644 --- a/mongodbatlas/resource_mongodbatlas_search_index.go +++ b/mongodbatlas/resource_mongodbatlas_search_index.go @@ -355,7 +355,7 @@ func resourceMongoDBAtlasSearchIndexCreate(ctx context.Context, d *schema.Resour dbSearchIndexRes, _, err := conn.Search.CreateIndex(ctx, projectID, clusterName, searchIndexRequest) if err != nil { - return diag.Errorf("error creating database user: %s", err) + return diag.Errorf("error creating index: %s", err) } d.SetId(encodeStateID(map[string]string{