Browse Source

Print unauthorized error message

pull/343/head
Daniel García 6 years ago
parent
commit
c9063a06b4
No known key found for this signature in database GPG Key ID: FC8A7D14C3CD543A
  1. 1
      src/error.rs

1
src/error.rs

@ -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…
Cancel
Save