From ae6a92f89ae89f57423e13b595e2eebd8243f5ce Mon Sep 17 00:00:00 2001 From: mpostma Date: Wed, 3 Jun 2020 11:52:44 +0200 Subject: [PATCH] error message for missing primary key --- meilisearch-core/src/serde/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-core/src/serde/mod.rs b/meilisearch-core/src/serde/mod.rs index 90b2843c9..24834b1b7 100644 --- a/meilisearch-core/src/serde/mod.rs +++ b/meilisearch-core/src/serde/mod.rs @@ -34,7 +34,7 @@ impl fmt::Display for SerializerError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { SerializerError::DocumentIdNotFound => { - f.write_str("serialized document does not have an id according to the schema") + f.write_str("Primary key is missing.") } SerializerError::InvalidDocumentIdFormat => { f.write_str("a document primary key can be of type integer or string only composed of alphanumeric characters, hyphens (-) and underscores (_).")