Просмотр исходного кода

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 год назад
Родитель
Сommit
6ccf08e924
1 измененных файлов с 1 добавлено и 1 удалено
  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;