Skip to content

Commit

Permalink
Add slots_remaining to InsufficientMana Display (#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M authored Mar 14, 2024
1 parent f723ea7 commit 89d20d3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ pub enum TransactionBuilderError {
required: u64,
},
/// Insufficient mana provided.
#[error("insufficient mana: found {found}, required {required}")]
#[error(
"insufficient mana: found {found}, required {required}, slots remaining until enough mana {slots_remaining}"
)]
InsufficientMana {
/// The amount found.
found: u64,
Expand Down

0 comments on commit 89d20d3

Please sign in to comment.