From 3c08c75d2633420e8011adac13f389777b2f3bc6 Mon Sep 17 00:00:00 2001 From: peg Date: Wed, 18 Dec 2024 11:18:13 +0100 Subject: [PATCH] Improve display of failed balance check errors --- crates/threshold-signature-server/src/helpers/launch.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/threshold-signature-server/src/helpers/launch.rs b/crates/threshold-signature-server/src/helpers/launch.rs index 3a541eddd..0d8d15b33 100644 --- a/crates/threshold-signature-server/src/helpers/launch.rs +++ b/crates/threshold-signature-server/src/helpers/launch.rs @@ -298,9 +298,9 @@ pub async fn check_node_prerequisites(app_state: AppState) { entropy_shared::MIN_BALANCE, ) .await - .map_err(|_| { - tracing::error!("Unable to query the account balance of `{}`", &account_id); - "Unable to query account balance".to_string() + .map_err(|e| { + tracing::error!("Account: {} {}", &account_id, e); + e.to_string() })?; if !has_minimum_balance { Err("Minimum balance not met".to_string())?