Skip to content

Commit 8b19dd9

Browse files
committed
Better error handling
Fixes #22
1 parent b4bef52 commit 8b19dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reserves.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ where
134134
.current_height(0)
135135
.drain_to(out_script_unspendable)
136136
.ordering(TxOrdering::Untouched);
137-
let (psbt, _details) = builder.finish().unwrap();
137+
let (psbt, _details) = builder.finish().map_err(ProofError::BdkError)?;
138138

139139
Ok(psbt)
140140
}

0 commit comments

Comments
 (0)