Browse Source

lib: re-export rpc error from error module for rpc handler access

This commit adds `RpcError` to the list of re-exports from the error module, making it accessible when handling errors in RPC-related modules.
kalm 1 năm trước cách đây
mục cha
commit
6ccf08e924
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -19,7 +19,7 @@
 #![feature(ip)]
 
 pub mod error;
-pub use error::{ClientFailed, ClientResult, Error, Result};
+pub use error::{ClientFailed, ClientResult, Error, Result, RpcError};
 
 #[cfg(feature = "blockchain")]
 pub mod blockchain;