From ac63f1cd7a0c4abd3914b85467339e5d9624435b Mon Sep 17 00:00:00 2001 From: mpostma Date: Wed, 24 Jun 2020 11:33:16 +0200 Subject: [PATCH] fix typo in error code --- 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 20a2c734b..4967aba3a 100644 --- a/meilisearch-error/src/lib.rs +++ b/meilisearch-error/src/lib.rs @@ -102,7 +102,7 @@ impl Code { PrimaryKeyAlreadyPresent => ErrCode::invalid("primary_key_already_present", StatusCode::BAD_REQUEST), // invalid document - MaxFieldsLimitExceeded => ErrCode::invalid("max_field_limit_exceeded", StatusCode::BAD_REQUEST), + MaxFieldsLimitExceeded => ErrCode::invalid("max_fields_limit_exceeded", StatusCode::BAD_REQUEST), MissingDocumentId => ErrCode::invalid("missing_document_id", StatusCode::BAD_REQUEST), // error related to facets