From baeb45571c7a07dc1b585abc5012650bfe32673d Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 18 Apr 2021 19:19:19 +0300 Subject: New user and verbose JWT errors --- src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/handlers.rs') 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 { warn!("AN UNSPECIFIED ERROR: {:?}", err); - return Err(String::from("Unspecified error")); + return Err(format!("JWT Error: {}", err)); } }, }; -- cgit v1.2.3-70-g09d2