Skip to content

Commit b99f1cf

Browse files
Add ProxyTransport error into Global Error.
1 parent a9ce6a3 commit b99f1cf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/error.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ pub enum Error {
139139
Sled(sled::Error),
140140
#[cfg(feature = "rpc")]
141141
/// Rpc client error
142-
Rpc(bitcoincore_rpc::Error),
142+
RpcClient(bitcoincore_rpc::Error),
143+
/// Rpc proxy error
144+
#[cfg(feature = "rpc")]
145+
RpcProxy(crate::blockchain::rpc_proxy::RpcProxyError),
143146
#[cfg(feature = "sqlite")]
144147
/// Rusqlite client error
145148
Rusqlite(rusqlite::Error),
@@ -196,7 +199,9 @@ impl_error!(electrum_client::Error, Electrum);
196199
#[cfg(feature = "key-value-db")]
197200
impl_error!(sled::Error, Sled);
198201
#[cfg(feature = "rpc")]
199-
impl_error!(bitcoincore_rpc::Error, Rpc);
202+
impl_error!(bitcoincore_rpc::Error, RpcClient);
203+
#[cfg(feature = "rpc")]
204+
impl_error!(crate::blockchain::rpc_proxy::RpcProxyError, RpcProxy);
200205
#[cfg(feature = "sqlite")]
201206
impl_error!(rusqlite::Error, Rusqlite);
202207

0 commit comments

Comments
 (0)