Skip to content

Commit

Permalink
improve logging on error
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Aug 22, 2024
1 parent cf5d2fd commit 080a7cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion elementsd-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ trait Call {

impl Call for ElementsD {
fn call(&self, cmd: &str, args: &[Value]) -> Value {
self.client().call::<Value>(cmd, args).unwrap()
match self.client().call::<Value>(cmd, args) {
Ok(v) => v,
Err(e) => panic!("error {} while calling {} with {:?}", e, cmd, args),
}
}

fn decode_psbt(&self, psbt: &str) -> Option<Value> {
Expand Down

0 comments on commit 080a7cc

Please sign in to comment.