Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-06-30 19:24:42 +02:00
Print unauthorized error message
Dieser Commit ist enthalten in:
Ursprung
62b8500aae
Commit
c9063a06b4
|
@ -163,6 +163,7 @@ macro_rules! err_json {
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! err_handler {
|
macro_rules! err_handler {
|
||||||
($expr:expr) => {{
|
($expr:expr) => {{
|
||||||
|
error!("Unauthorized Error: {:#?}", $expr);
|
||||||
return rocket::Outcome::Failure((rocket::http::Status::Unauthorized, $expr));
|
return rocket::Outcome::Failure((rocket::http::Status::Unauthorized, $expr));
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
Laden …
In neuem Issue referenzieren