aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-09 18:43:53 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-09 18:43:53 +0200
commit1d786c2c663ac6f6e3e3ef52accd6e9eca049988 (patch)
tree813720a682fe7cf4947129020d73ccf4797d0c3a /src/error.rs
parent101444abb3967770ec378ee09f24eb2845dc091d (diff)
downloadgarage-1d786c2c663ac6f6e3e3ef52accd6e9eca049988.tar.gz
garage-1d786c2c663ac6f6e3e3ef52accd6e9eca049988.zip
Something works
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 578f73e9..9cbbd4f7 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -23,6 +23,8 @@ pub enum Error {
RMPEncode(#[error(source)] rmp_serde::encode::Error),
#[error(display = "Messagepack decode error: {}", _0)]
RMPDecode(#[error(source)] rmp_serde::decode::Error),
+ #[error(display = "JSON error: {}", _0)]
+ JSON(#[error(source)] serde_json::error::Error),
#[error(display = "TOML decode error: {}", _0)]
TomlDecode(#[error(source)] toml::de::Error),