mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-12-14 01:23:55 +01:00
Print unauthorized error message
This commit is contained in:
parent
62b8500aae
commit
c9063a06b4
1 changed files with 1 additions and 0 deletions
|
@ -163,6 +163,7 @@ macro_rules! err_json {
|
|||
#[macro_export]
|
||||
macro_rules! err_handler {
|
||||
($expr:expr) => {{
|
||||
error!("Unauthorized Error: {:#?}", $expr);
|
||||
return rocket::Outcome::Failure((rocket::http::Status::Unauthorized, $expr));
|
||||
}};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue