aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-08 23:01:49 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-08 23:01:49 +0200
commitcc580da0aef95bcb94bd2ce602258d0d18388969 (patch)
treec61148b75627dc27989d4ce39ded3b6124c86cfb /src/error.rs
parentbacc76a057bcd90d61bfe3584bd3cdbadc748364 (diff)
downloadgarage-cc580da0aef95bcb94bd2ce602258d0d18388969.tar.gz
garage-cc580da0aef95bcb94bd2ce602258d0d18388969.zip
Some work
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 30f7dac6..0cfafca3 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -15,6 +15,9 @@ pub enum Error {
#[error(display = "Invalid HTTP header value: {}", _0)]
HTTPHeader(#[error(source)] http::header::ToStrError),
+ #[error(display = "Sled error: {}", _0)]
+ Sled(#[error(source)] sled::Error),
+
#[error(display = "Messagepack encode error: {}", _0)]
RMPEncode(#[error(source)] rmp_serde::encode::Error),
#[error(display = "Messagepack decode error: {}", _0)]
@@ -32,6 +35,9 @@ pub enum Error {
#[error(display = "{}", _0)]
BadRequest(String),
+ #[error(display = "Entry not found")]
+ NotFound,
+
#[error(display = "{}", _0)]
Message(String),
}