From 41707e32458223c3f5ff6e1f0c1c62e85ef3af3c Mon Sep 17 00:00:00 2001 From: mpostma Date: Mon, 22 Jun 2020 18:54:32 +0200 Subject: [PATCH] fix error on missing document id in document --- meilisearch-core/src/error.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meilisearch-core/src/error.rs b/meilisearch-core/src/error.rs index bbb33526a..0540ca8d0 100644 --- a/meilisearch-core/src/error.rs +++ b/meilisearch-core/src/error.rs @@ -124,7 +124,10 @@ impl From for Error { impl From for Error { fn from(error: SerializerError) -> Error { - Error::Serializer(error) + match error { + SerializerError::DocumentIdNotFound => Error::MissingDocumentId, + e => Error::Serializer(e), + } } }