Skip to content

Commit

Permalink
Added more info to error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Dec 24, 2020
1 parent d49ff56 commit a6d0f44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ func CreateTxWithChange(utxos []*Utxo, payToAddresses []*PayToAddress, opReturns
// Fee was not adjusted (all inputs do not cover the fee)
if !feeAdjusted {
return nil, fmt.Errorf(
"auto-fee could not be applied without removing an input",
"auto-fee could not be applied without removing an output (outputs %d) (sats %d)",
len(payToAddresses), remainder,
)
}

Expand Down

0 comments on commit a6d0f44

Please sign in to comment.