Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions src/chain/esplora.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,22 @@ impl EsploraChainSource {
},
Err(e) => match *e {
esplora_client::Error::Reqwest(he) => {
log_error!(
self.logger,
"{} of on-chain wallet failed due to HTTP connection error: {}",
if incremental_sync { "Incremental sync" } else { "Sync" },
he
);
if let Some(status_code) = he.status() {
log_error!(
self.logger,
"{} of on-chain wallet failed due to HTTP {} error: {}",
if incremental_sync { "Incremental sync" } else { "Sync" },
status_code,
he,
);
} else {
log_error!(
self.logger,
"{} of on-chain wallet failed due to HTTP error: {}",
if incremental_sync { "Incremental sync" } else { "Sync" },
he,
);
}
Err(Error::WalletOperationFailed)
},
_ => {
Expand Down
Loading