diff --git a/src/routes/errors.rs b/src/routes/errors.rs index 74dc4dd5..8d69d0b5 100644 --- a/src/routes/errors.rs +++ b/src/routes/errors.rs @@ -21,8 +21,9 @@ impl<'r> Responder<'r> for ErrorPage { warn!("{:?}", self.0); match self.0 { - Error::NotFound => Err(Status::NotFound), - Error::Unauthorized => Err(Status::NotFound), + Error::NotFound | Error::Unauthorized | Error::Db(diesel::result::Error::NotFound) => { + Err(Status::NotFound) + } _ => Err(Status::InternalServerError), } }