|
@@ -42,6 +42,7 @@ pub enum Error {
|
|
|
ZmqError(String),
|
|
ZmqError(String),
|
|
|
VerifyFailed,
|
|
VerifyFailed,
|
|
|
ClientFailed(String),
|
|
ClientFailed(String),
|
|
|
|
|
+ #[cfg(feature = "default")]
|
|
|
BtcFailed(String),
|
|
BtcFailed(String),
|
|
|
TryIntoError,
|
|
TryIntoError,
|
|
|
TryFromError,
|
|
TryFromError,
|
|
@@ -94,6 +95,7 @@ impl fmt::Display for Error {
|
|
|
Error::ZmqError(ref err) => write!(f, "ZmqError: {}", err),
|
|
Error::ZmqError(ref err) => write!(f, "ZmqError: {}", err),
|
|
|
Error::VerifyFailed => f.write_str("Verify failed"),
|
|
Error::VerifyFailed => f.write_str("Verify failed"),
|
|
|
Error::ClientFailed(ref err) => write!(f, "Client failed: {}", err),
|
|
Error::ClientFailed(ref err) => write!(f, "Client failed: {}", err),
|
|
|
|
|
+ #[cfg(feature = "default")]
|
|
|
Error::BtcFailed(ref err) => write!(f, "Btc client failed: {}", err),
|
|
Error::BtcFailed(ref err) => write!(f, "Btc client failed: {}", err),
|
|
|
Error::TryIntoError => f.write_str("TryInto error"),
|
|
Error::TryIntoError => f.write_str("TryInto error"),
|
|
|
Error::TryFromError => f.write_str("TryFrom error"),
|
|
Error::TryFromError => f.write_str("TryFrom error"),
|
|
@@ -217,6 +219,7 @@ impl From<client::ClientFailed> for Error {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#[cfg(feature = "default")]
|
|
|
impl From<crate::service::BtcFailed> for Error {
|
|
impl From<crate::service::BtcFailed> for Error {
|
|
|
fn from(err: crate::service::BtcFailed) -> Error {
|
|
fn from(err: crate::service::BtcFailed) -> Error {
|
|
|
Error::BtcFailed(err.to_string())
|
|
Error::BtcFailed(err.to_string())
|