From cf53a4e967d22309a3b06ee3f23bdd5d86937bea Mon Sep 17 00:00:00 2001 From: scx1332 Date: Mon, 23 Sep 2024 15:30:17 +0200 Subject: [PATCH] Improved error message --- crates/erc20_payment_lib/src/account_balance.rs | 1 + crates/erc20_payment_lib/src/eth.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/erc20_payment_lib/src/account_balance.rs b/crates/erc20_payment_lib/src/account_balance.rs index 5d66d121..b9a0ed7e 100644 --- a/crates/erc20_payment_lib/src/account_balance.rs +++ b/crates/erc20_payment_lib/src/account_balance.rs @@ -10,6 +10,7 @@ use std::sync::Arc; use structopt::StructOpt; use web3::types::Address; +#[allow(dead_code)] #[derive(Clone, StructOpt)] #[structopt(about = "Payment statistics options")] pub struct BalanceOptions2 { diff --git a/crates/erc20_payment_lib/src/eth.rs b/crates/erc20_payment_lib/src/eth.rs index e157f4a5..450f043d 100644 --- a/crates/erc20_payment_lib/src/eth.rs +++ b/crates/erc20_payment_lib/src/eth.rs @@ -540,12 +540,12 @@ async fn get_balance_using_contract_wrapper( Ok(None) } else { log::error!( - "Error getting balance for account: {:#x} - {}", + "Web3 RPC endpoint(s) failed: Error getting balance for account: {:#x} - {}", args.address, e ); Err(err_custom_create!( - "Error getting balance for account: {:#x} - {}", + "Web3 RPC endpoint(s) failed: Error getting balance for account: {:#x} - {}", args.address, e ))