aboutsummaryrefslogtreecommitdiff
path: root/src/web/error.rs
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-11-21 17:50:19 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-11-21 17:50:19 +0100
commita88fd49f71844f04013970a678201a65ab89fb19 (patch)
tree871473ffde04ba437f0681482a0d76793bb1ef39 /src/web/error.rs
parent78be2b363f6747f8dae9c8c86e96c88ae8a054b3 (diff)
downloadgarage-a88fd49f71844f04013970a678201a65ab89fb19.tar.gz
garage-a88fd49f71844f04013970a678201a65ab89fb19.zip
Use handle_get
Diffstat (limited to 'src/web/error.rs')
-rw-r--r--src/web/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/error.rs b/src/web/error.rs
index 094b22d0..59810f0f 100644
--- a/src/web/error.rs
+++ b/src/web/error.rs
@@ -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),