From c9063a06b41fb9ee6a1c21dc2037e158176d84f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Mon, 7 Jan 2019 02:18:51 +0100 Subject: [PATCH] Print unauthorized error message --- src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.rs b/src/error.rs index 115ef0e..8a6c6fb 100644 --- a/src/error.rs +++ b/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)); }}; }