Skip to content

Commit 3148fb3

Browse files
committed
Correct error description for UtxoUpdateError::MissingInputUtxo
1 parent 03c25ec commit 3148fb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/psbt/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ fn script_code_wpkh(script: &Script) -> Script {
13041304
pub enum UtxoUpdateError {
13051305
/// Index out of bounds
13061306
IndexOutOfBounds(usize, usize),
1307-
/// The PSBT transaction didn't have an input at that index
1307+
/// The unsigned transaction didn't have an input at that index
13081308
MissingInputUtxo,
13091309
/// Derivation error
13101310
DerivationError(descriptor::ConversionError),
@@ -1321,7 +1321,9 @@ impl fmt::Display for UtxoUpdateError {
13211321
UtxoUpdateError::IndexOutOfBounds(ind, len) => {
13221322
write!(f, "index {}, psbt input len: {}", ind, len)
13231323
}
1324-
UtxoUpdateError::MissingInputUtxo => write!(f, "Missing input utxo in pbst"),
1324+
UtxoUpdateError::MissingInputUtxo => {
1325+
write!(f, "Missing input in unsigned transaction")
1326+
}
13251327
UtxoUpdateError::DerivationError(e) => write!(f, "Key derivation error {}", e),
13261328
UtxoUpdateError::UtxoCheck => write!(
13271329
f,

0 commit comments

Comments
 (0)