Skip to content

Commit

Permalink
surface error
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Mar 7, 2024
1 parent 258da12 commit 7791aef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,10 @@ impl SuccinctClient {
ethers::types::Bytes(succinct_proof_data.calldata.0),
)
.send()
.await?
.await?;
.await
.map_err(|e| Error::msg(format!("Transaction failed: {}", e)))?
.await
.map_err(|e| Error::msg(format!("Transaction confirmation failed: {}", e)))?;

if let Some(tx) = tx {
info!(
Expand Down

0 comments on commit 7791aef

Please sign in to comment.