From 5e206ee84bf329b6084adcf3b5ac81bfca30de56 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Tue, 23 Aug 2022 15:07:54 +0200 Subject: [PATCH] Classify InvalidLmdbOpenOptions as an Internal error --- meilisearch-lib/src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/meilisearch-lib/src/error.rs b/meilisearch-lib/src/error.rs index 168f2f88b..16111a191 100644 --- a/meilisearch-lib/src/error.rs +++ b/meilisearch-lib/src/error.rs @@ -24,6 +24,7 @@ impl ErrorCode for MilliError<'_> { match error { // TODO: wait for spec for new error codes. UserError::SerdeJson(_) + | UserError::InvalidLmdbOpenOptions | UserError::DocumentLimitReached | UserError::AccessingSoftDeletedDocument { .. } | UserError::UnknownInternalDocumentId { .. } => Code::Internal,