From 2c86325e3c23fdddfb0a84e479437c8bc057a7eb Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 31 Jan 2020 20:30:03 -0500 Subject: Add user request guard --- src/error.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/error.rs') 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"), } } } -- cgit v1.2.3