diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-01-31 20:30:03 -0500 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-01-31 20:30:03 -0500 |
commit | 2c86325e3c23fdddfb0a84e479437c8bc057a7eb (patch) | |
tree | 79c3f366aa062915b021da782506584262273a8b /src/error.rs | |
parent | cbf64a8a5c7d748722369a2ec47c1230650d7b88 (diff) |
Add user request guard
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 81647d5..523922a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -10,6 +10,7 @@ pub enum Error { PasswordError(BcryptError), AlreadyExists, NotFound, + InternalError, } impl fmt::Display for Error { @@ -19,6 +20,7 @@ impl fmt::Display for Error { Error::PasswordError(ref e) => e.fmt(f), Error::AlreadyExists => f.write_str("AlreadyExists"), Error::NotFound => f.write_str("NotFound"), + Error::InternalError => f.write_str("InternalError"), } } } |