mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
implement get index meta
This commit is contained in:
parent
8d462afb79
commit
f1c09a54be
4 changed files with 26 additions and 12 deletions
|
@ -28,6 +28,13 @@ impl fmt::Display for ResponseError {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: remove this when implementing actual error handling
|
||||
impl From<anyhow::Error> for ResponseError {
|
||||
fn from(other: anyhow::Error) -> ResponseError {
|
||||
ResponseError { inner: Box::new(Error::NotFound(other.to_string())) }
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Error> for ResponseError {
|
||||
fn from(error: Error) -> ResponseError {
|
||||
ResponseError { inner: Box::new(error) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue