replace unwraps with correct error

This commit is contained in:
mpostma 2021-09-28 19:29:14 +02:00
parent 56766cffc3
commit 3747f5bdd8
3 changed files with 61 additions and 31 deletions

View file

@ -3,6 +3,8 @@ use std::error::Error;
use meilisearch_error::{Code, ErrorCode};
use crate::index_controller::update_file_store::UpdateFileStoreError;
pub type Result<T> = std::result::Result<T, UpdateLoopError>;
#[derive(Debug, thiserror::Error)]
@ -42,7 +44,8 @@ internal_error!(
UpdateLoopError: heed::Error,
std::io::Error,
serde_json::Error,
tokio::task::JoinError
tokio::task::JoinError,
UpdateFileStoreError
);
impl ErrorCode for UpdateLoopError {