From 08fcb76b9d3a87810c77bce381dc38c46bf59fb8 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Mon, 9 Sep 2024 16:41:49 -0700 Subject: [PATCH] change default error --- wasm/solana-client/src/provider.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wasm/solana-client/src/provider.rs b/wasm/solana-client/src/provider.rs index d62e6243..3500e52e 100644 --- a/wasm/solana-client/src/provider.rs +++ b/wasm/solana-client/src/provider.rs @@ -37,10 +37,10 @@ impl HttpProvider { match serde_json::from_value::(request_result.clone()) { Ok(response) => Ok(response), Err(err) => { - if let Ok(err) = serde_json::from_value::(request_result) { + if let Ok(err) = serde_json::from_value::(request_result.clone()) { Err(err) } else { - Err(ClientError::new(&err.to_string())) + Err(ClientError::new(&request_result.to_string())) } } }