Browse Source

Print unauthorized error message

Daniel García 7 years ago
parent
commit
c9063a06b4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/error.rs

+ 1 - 0
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));
     }};
 }