From 89d20d3775a66680449cb0a0b28bf8850a3ee616 Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:13:29 +0100 Subject: [PATCH] Add slots_remaining to InsufficientMana Display (#2178) --- sdk/src/client/api/block_builder/transaction_builder/error.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/src/client/api/block_builder/transaction_builder/error.rs b/sdk/src/client/api/block_builder/transaction_builder/error.rs index 8affd1f350..910501d47b 100644 --- a/sdk/src/client/api/block_builder/transaction_builder/error.rs +++ b/sdk/src/client/api/block_builder/transaction_builder/error.rs @@ -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,