aboutsummaryrefslogtreecommitdiffstats
path: root/src/handlers.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-18 19:19:19 +0300
committerYigit Sever2021-04-18 19:19:19 +0300
commitbaeb45571c7a07dc1b585abc5012650bfe32673d (patch)
treeb5e7a4fac8fb26ac2834b848d3c06dd1e4e32eb5 /src/handlers.rs
parent7eed1cac791e9f78938c057b32bffc79e5249672 (diff)
downloadgradecoin-baeb45571c7a07dc1b585abc5012650bfe32673d.tar.gz
gradecoin-baeb45571c7a07dc1b585abc5012650bfe32673d.tar.bz2
gradecoin-baeb45571c7a07dc1b585abc5012650bfe32673d.zip
New user and verbose JWT errors
Diffstat (limited to 'src/handlers.rs')
-rw-r--r--src/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index f1fd1e0..f6e1f9f 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -723,7 +723,7 @@ fn authorize_proposer(jwt_token: String, user_pem: &str) -> Result<TokenData<Cla
723 } 723 }
724 _ => { 724 _ => {
725 warn!("AN UNSPECIFIED ERROR: {:?}", err); 725 warn!("AN UNSPECIFIED ERROR: {:?}", err);
726 return Err(String::from("Unspecified error")); 726 return Err(format!("JWT Error: {}", err));
727 } 727 }
728 }, 728 },
729 }; 729 };