Skip to content

Commit 6f7af02

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/error.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ 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+
RpcProxy(crate::blockchain::rpc_proxy::RpcProxyError),
143145
#[cfg(feature = "sqlite")]
144146
/// Rusqlite client error
145147
Rusqlite(rusqlite::Error),
@@ -196,7 +198,9 @@ impl_error!(electrum_client::Error, Electrum);
196198
#[cfg(feature = "key-value-db")]
197199
impl_error!(sled::Error, Sled);
198200
#[cfg(feature = "rpc")]
199-
impl_error!(bitcoincore_rpc::Error, Rpc);
201+
impl_error!(bitcoincore_rpc::Error, RpcClient);
202+
#[cfg(feature = "rpc")]
203+
impl_error!(crate::blockchain::rpc_proxy::RpcProxyError, RpcProxy);
200204
#[cfg(feature = "sqlite")]
201205
impl_error!(rusqlite::Error, Rusqlite);
202206

0 commit comments

Comments
 (0)