0
0
Fork 0
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:
Daniel García 2019-01-07 02:18:51 +01:00
parent 62b8500aae
commit c9063a06b4
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -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));
}};
}