Skip to content

Commit

Permalink
Add ProxyTransport error into Global Error.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarshimaitra committed Dec 3, 2021
1 parent a9ce6a3 commit 6f7af02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ pub enum Error {
Sled(sled::Error),
#[cfg(feature = "rpc")]
/// Rpc client error
Rpc(bitcoincore_rpc::Error),
RpcClient(bitcoincore_rpc::Error),
/// Rpc proxy error
RpcProxy(crate::blockchain::rpc_proxy::RpcProxyError),
#[cfg(feature = "sqlite")]
/// Rusqlite client error
Rusqlite(rusqlite::Error),
Expand Down Expand Up @@ -196,7 +198,9 @@ impl_error!(electrum_client::Error, Electrum);
#[cfg(feature = "key-value-db")]
impl_error!(sled::Error, Sled);
#[cfg(feature = "rpc")]
impl_error!(bitcoincore_rpc::Error, Rpc);
impl_error!(bitcoincore_rpc::Error, RpcClient);
#[cfg(feature = "rpc")]
impl_error!(crate::blockchain::rpc_proxy::RpcProxyError, RpcProxy);
#[cfg(feature = "sqlite")]
impl_error!(rusqlite::Error, Rusqlite);

Expand Down

0 comments on commit 6f7af02

Please sign in to comment.