mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
replace unwraps with correct error
This commit is contained in:
parent
56766cffc3
commit
3747f5bdd8
3 changed files with 61 additions and 31 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue