From f078cbac4d0e4a97eb99ac0ae19e426ad71c2e15 Mon Sep 17 00:00:00 2001 From: Clementine Urquizar Date: Tue, 28 Jul 2020 15:18:05 +0200 Subject: [PATCH] Remove schema mention in error message --- meilisearch-schema/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-schema/src/error.rs b/meilisearch-schema/src/error.rs index 8dcc0a7a4..331721e24 100644 --- a/meilisearch-schema/src/error.rs +++ b/meilisearch-schema/src/error.rs @@ -16,7 +16,7 @@ impl fmt::Display for Error { use self::Error::*; match self { FieldNameNotFound(field) => write!(f, "The field {:?} doesn't exist", field), - PrimaryKeyAlreadyPresent => write!(f, "The schema already have an primary key. It's impossible to update it"), + PrimaryKeyAlreadyPresent => write!(f, "A primary key is already present. It's impossible to update it"), MaxFieldsLimitExceeded => write!(f, "The maximum of possible reattributed field id has been reached"), } }