From 68ad570cfc36de78d6e4c12ad02aef805164c28f Mon Sep 17 00:00:00 2001 From: mpostma Date: Fri, 29 May 2020 16:28:11 +0200 Subject: [PATCH] replace existing_index with index_already_exists --- meilisearch-error/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-error/src/lib.rs b/meilisearch-error/src/lib.rs index 1c8fc4e78..c0dec6a3e 100644 --- a/meilisearch-error/src/lib.rs +++ b/meilisearch-error/src/lib.rs @@ -87,7 +87,7 @@ impl Code { match self { // index related errors CreateIndex => ErrCode::invalid("create_index", StatusCode::BAD_REQUEST), - IndexAlreadyExists => ErrCode::invalid("existing_index", StatusCode::BAD_REQUEST), + IndexAlreadyExists => ErrCode::invalid("index_already_exists", StatusCode::BAD_REQUEST), IndexNotFound => ErrCode::invalid("index_not_found", StatusCode::NOT_FOUND), InvalidIndexUid => ErrCode::invalid("invalid_index_uid", StatusCode::BAD_REQUEST), OpenIndex => ErrCode::internal("open_index", StatusCode::INTERNAL_SERVER_ERROR),