Skip to content

Commit f889525

Browse files
committed
improve logging on error
1 parent 802c006 commit f889525

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

elementsd-tests/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ trait Call {
3232

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

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

0 commit comments

Comments
 (0)