From 3015265bde07a0b7428611fb429139fb540cffd2 Mon Sep 17 00:00:00 2001 From: ad hoc Date: Wed, 25 May 2022 14:37:10 +0200 Subject: [PATCH] remove useless dump errors --- meilisearch-lib/src/dump/error.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/meilisearch-lib/src/dump/error.rs b/meilisearch-lib/src/dump/error.rs index 7931a8d75..da9010347 100644 --- a/meilisearch-lib/src/dump/error.rs +++ b/meilisearch-lib/src/dump/error.rs @@ -7,10 +7,6 @@ pub type Result = std::result::Result; #[derive(thiserror::Error, Debug)] pub enum DumpError { - #[error("A dump is already processing. You must wait until the current process is finished before requesting another dump.")] - DumpAlreadyRunning, - #[error("Dump `{0}` not found.")] - DumpDoesNotExist(String), #[error("An internal error has occurred. `{0}`.")] Internal(Box), #[error("{0}")] @@ -32,8 +28,6 @@ internal_error!( impl ErrorCode for DumpError { fn error_code(&self) -> Code { match self { - DumpError::DumpAlreadyRunning => Code::DumpAlreadyInProgress, - DumpError::DumpDoesNotExist(_) => Code::DumpNotFound, DumpError::Internal(_) => Code::Internal, DumpError::IndexResolver(e) => e.error_code(), }