diff options
Diffstat (limited to 'src/database/mod.rs')
-rw-r--r-- | src/database/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/database/mod.rs b/src/database/mod.rs index 6abe72c..82bbea5 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -24,6 +24,7 @@ pub enum ErrorKind { PermissionDenied, JSONParsing, NotFound, + BadRequest, Other } @@ -56,6 +57,7 @@ impl std::fmt::Display for StorageError { ErrorKind::JSONParsing => write!(f, "error while parsing JSON: "), ErrorKind::PermissionDenied => write!(f, "permission denied: "), ErrorKind::NotFound => write!(f, "not found: "), + ErrorKind::BadRequest => write!(f, "bad request: "), ErrorKind::Other => write!(f, "generic storage layer error: ") } { Ok(_) => write!(f, "{}", self.msg), |