mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-24 09:53:09 -05:00
Improve code structure and error messages for running swaps
The quote message was repeated and we should set the overall failure into a context to know what went wrong.
This commit is contained in:
parent
0c0a322a8f
commit
2c9ab4f6eb
2 changed files with 10 additions and 10 deletions
|
|
@ -223,7 +223,7 @@ impl EventLoop {
|
|||
}
|
||||
OutEvent::ResponseSent => {}
|
||||
OutEvent::CommunicationError(err) => {
|
||||
bail!("Communication error: {:#}", err)
|
||||
bail!(err.context("Communication error"))
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue