mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-14 07:51:01 +00:00
Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/1062
This commit is contained in:
commit
9ae3057106
1 changed files with 3 additions and 2 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue