diff --git a/zebra-rpc/src/server/error.rs b/zebra-rpc/src/server/error.rs index 943d820402c..5130a16d533 100644 --- a/zebra-rpc/src/server/error.rs +++ b/zebra-rpc/src/server/error.rs @@ -64,12 +64,12 @@ impl From for i32 { } } -/// A trait for mapping errors to [`jsonrpc_core::Error`]. +/// A trait for mapping errors to [`jsonrpsee_types::ErrorObjectOwned`]. pub(crate) trait MapError: Sized { - /// Maps errors to [`jsonrpc_core::Error`] with a specific error code. + /// Maps errors to [`jsonrpsee_types::ErrorObjectOwned`] with a specific error code. fn map_error(self, code: impl Into) -> std::result::Result; - /// Maps errors to [`jsonrpc_core::Error`] with a [`LegacyCode::Misc`] error code. + /// Maps errors to [`jsonrpsee_types::ErrorObjectOwned`] with a [`LegacyCode::Misc`] error code. fn map_misc_error(self) -> std::result::Result { self.map_error(LegacyCode::Misc) }