commit c9063a06b41fb9ee6a1c21dc2037e158176d84f6
parent 62b8500aaebcbc6c60671a9f7827a188e66c02cd
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Mon, 7 Jan 2019 02:18:51 +0100
Print unauthorized error message
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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));
}};
}