diff --git a/elementsd-tests/src/lib.rs b/elementsd-tests/src/lib.rs index ae511162..5fda0064 100644 --- a/elementsd-tests/src/lib.rs +++ b/elementsd-tests/src/lib.rs @@ -32,7 +32,10 @@ trait Call { impl Call for ElementsD { fn call(&self, cmd: &str, args: &[Value]) -> Value { - self.client().call::(cmd, args).unwrap() + match self.client().call::(cmd, args) { + Ok(v) => v, + Err(e) => panic!("error {} while calling {} with {:?}", e, cmd, args), + } } fn decode_psbt(&self, psbt: &str) -> Option {