Skip to content

Commit

Permalink
chore(sidecar): error log
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Oct 30, 2024
1 parent d3560c0 commit 9023b10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bolt-sidecar/src/chain_io/manager.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::str::FromStr;
use tracing::error;

use alloy::{
contract::Error as ContractError,
Expand Down Expand Up @@ -80,6 +81,7 @@ impl BoltManager {
}
Err(error) => match error {
ContractError::TransportError(TransportError::ErrorResp(err)) => {
error!("Error response from BoltManager contract: {:?}", err);
let data = err.data.unwrap_or_default();
let data = data.get().trim_matches('"');
let data = Bytes::from_str(data)?;
Expand Down

0 comments on commit 9023b10

Please sign in to comment.