diff options
author | Vika <vika@fireburn.ru> | 2021-05-04 21:06:24 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-05-04 21:07:39 +0300 |
commit | 12a4906117349fa518e4be5550bd8901941abcf0 (patch) | |
tree | deefc3766df9aaee563cbfdf52108f4bc323c233 /src/database/mod.rs | |
parent | 7024cbefb27e1c9649bff57df32b316484de4104 (diff) | |
download | kittybox-12a4906117349fa518e4be5550bd8901941abcf0.tar.zst |
Implemented MemoryStorage::update_post()
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), |