Explorar el Código

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 hace 1 año
padre
commit
6ccf08e924
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;