mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-31 21:04:29 +01:00
Add more details to swap_status error (#106)
* Add more details to swap_status error * Cargo fmt
This commit is contained in:
@@ -122,7 +122,7 @@ impl Wallet {
|
||||
} => {
|
||||
let status_response = client
|
||||
.swap_status(SwapStatusRequest { id: id.clone() })
|
||||
.map_err(|_| anyhow!("Could not contact Boltz servers for claim status"))?;
|
||||
.map_err(|e| anyhow!("Failed to fetch swap status: {e:?}"))?;
|
||||
|
||||
let swap_state = status_response
|
||||
.status
|
||||
@@ -178,7 +178,7 @@ impl Wallet {
|
||||
|
||||
let status_response = client
|
||||
.swap_status(SwapStatusRequest { id: id.clone() })
|
||||
.map_err(|_| anyhow!("Could not contact Boltz servers for claim status"))?;
|
||||
.map_err(|e| anyhow!("Failed to fetch swap status: {e:?}"))?;
|
||||
|
||||
if [
|
||||
SubSwapStates::TransactionClaimed.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user