Add a String to Monero ConnectionErrors debugging the issue

We're reaching this in CI so there must be some issue present.
This commit is contained in:
Luke Parker
2023-11-03 05:45:31 -04:00
parent a2089c61fb
commit 4c9e3b085b
4 changed files with 45 additions and 28 deletions

View File

@@ -57,8 +57,8 @@ struct TransactionsResponse {
pub enum RpcError {
#[cfg_attr(feature = "std", error("internal error ({0})"))]
InternalError(&'static str),
#[cfg_attr(feature = "std", error("connection error"))]
ConnectionError,
#[cfg_attr(feature = "std", error("connection error ({0})"))]
ConnectionError(String),
#[cfg_attr(feature = "std", error("invalid node ({0})"))]
InvalidNode(&'static str),
#[cfg_attr(feature = "std", error("unsupported protocol version ({0})"))]