mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Change lacking errors
This commit is contained in:
parent
c32f13a909
commit
30a094cbb2
14 changed files with 128 additions and 61 deletions
|
@ -9,7 +9,7 @@ pub type Result<T> = std::result::Result<T, IndexError>;
|
|||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum IndexError {
|
||||
#[error("Internal error: {0}")]
|
||||
#[error("An internal error has occurred. `{0}`.")]
|
||||
Internal(Box<dyn Error + Send + Sync + 'static>),
|
||||
#[error("Document `{0}` not found.")]
|
||||
DocumentNotFound(String),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue