Use handle_get

This commit is contained in:
Quentin
2020-11-21 17:50:19 +01:00
parent 78be2b363f
commit a88fd49f71
9 changed files with 22 additions and 130 deletions
+3
View File
@@ -5,6 +5,9 @@ use garage_util::error::Error as GarageError;
#[derive(Debug, Error)]
pub enum Error {
#[error(display = "API error: {}", _0)]
ApiError(#[error(source)] garage_api::error::Error),
// Category: internal error
#[error(display = "Internal error: {}", _0)]
InternalError(#[error(source)] GarageError),