Skip to content

Commit

Permalink
change default error
Browse files Browse the repository at this point in the history
  • Loading branch information
HardhatChad committed Sep 9, 2024
1 parent 5cb0c7d commit 08fcb76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasm/solana-client/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ impl HttpProvider {
match serde_json::from_value::<ClientResponse>(request_result.clone()) {
Ok(response) => Ok(response),
Err(err) => {
if let Ok(err) = serde_json::from_value::<ClientError>(request_result) {
if let Ok(err) = serde_json::from_value::<ClientError>(request_result.clone()) {
Err(err)
} else {
Err(ClientError::new(&err.to_string()))
Err(ClientError::new(&request_result.to_string()))
}
}
}
Expand Down

0 comments on commit 08fcb76

Please sign in to comment.