summaryrefslogtreecommitdiffstatshomepage
path: root/src/wallets.rs
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-24 01:49:20 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-24 01:49:20 +0100
commitb125bde9e4c8955fcfb6aae8ce9def13bfff726e (patch)
tree21a6cfedff69b7b8ab369e8f3cdf08432d9e456b /src/wallets.rs
parent9ebbb9ee741c1d78a52789a646af83bce21e5a78 (diff)
downloadsentrum-b125bde9e4c8955fcfb6aae8ce9def13bfff726e.tar.gz
sentrum-b125bde9e4c8955fcfb6aae8ce9def13bfff726e.tar.bz2
sentrum-b125bde9e4c8955fcfb6aae8ce9def13bfff726e.zip
Use alt selector for displaying anyhow::Error
Diffstat (limited to 'src/wallets.rs')
-rw-r--r--src/wallets.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallets.rs b/src/wallets.rs
index cc4f157..9ee702c 100644
--- a/src/wallets.rs
+++ b/src/wallets.rs
@@ -183,13 +183,13 @@ impl WalletInfo {
pub fn get_new_txs(&mut self) -> Vec<TransactionDetails> {
debug!("[{}] syncing wallet", self.name);
if let Err(e) = self.wallet.sync(&self.blockchain, SyncOptions::default()) {
- warn!("[{}] cannot sync wallet: {}", self.name, e);
+ warn!("[{}] cannot sync wallet: {:#}", self.name, e);
return Default::default();
}
let tx_list = match self.wallet.list_transactions(false) {
Ok(txs) => txs,
Err(e) => {
- warn!("[{}] cannot retrieve transactions: {}", self.name, e);
+ warn!("[{}] cannot retrieve transactions: {:#}", self.name, e);
Default::default()
}
};
@@ -223,7 +223,7 @@ pub fn get_wallets(
})));
}
Err(e) => {
- error!("[{}] cannot setup wallet: {}", name, e);
+ error!("[{}] cannot setup wallet: {:#}", name, e);
}
}
}