diff --git a/fastcrypto-zkp/src/bn254/zk_login.rs b/fastcrypto-zkp/src/bn254/zk_login.rs index f89e6ea90..5aaa31d9d 100644 --- a/fastcrypto-zkp/src/bn254/zk_login.rs +++ b/fastcrypto-zkp/src/bn254/zk_login.rs @@ -23,6 +23,7 @@ use regex::Regex; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; use std::cmp::Ordering::{Equal, Greater, Less}; +use std::error::Error; use std::str::FromStr; #[cfg(test)] @@ -339,7 +340,8 @@ pub async fn fetch_jwks( .await .map_err(|e| { FastCryptoError::GeneralError(format!( - "Failed to get JWK {:?} {:?}", + "Failed to get JWK {:?} {:?} {:?}", + e.source(), e.to_string(), provider ))