implement get index meta

This commit is contained in:
mpostma 2021-02-04 12:34:12 +01:00
parent 8d462afb79
commit f1c09a54be
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
4 changed files with 26 additions and 12 deletions

View file

@ -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) }