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
commita11fb97eecc4e9cbc494d0d8a2771848f6256e77 (patch)
tree261169fdfed9a625bb02a61d55658c61d0dd35f6 /src/handlers.rs
parent177298de62546d0197d34f81b76fe7e45f97f661 (diff)
downloadgradecoin-a11fb97eecc4e9cbc494d0d8a2771848f6256e77.tar.gz
gradecoin-a11fb97eecc4e9cbc494d0d8a2771848f6256e77.tar.bz2
gradecoin-a11fb97eecc4e9cbc494d0d8a2771848f6256e77.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 };