From 7729fe328f360067a8ac21fa5809ac0bf748198f Mon Sep 17 00:00:00 2001 From: Ignacio Duart Date: Fri, 15 Dec 2023 15:36:21 +0100 Subject: [PATCH] New error kind --- rust/src/client_api/client_events.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/src/client_api/client_events.rs b/rust/src/client_api/client_events.rs index 8d4ec84..298e5a4 100644 --- a/rust/src/client_api/client_events.rs +++ b/rust/src/client_api/client_events.rs @@ -124,6 +124,8 @@ pub enum ErrorKind { UnknownClient(usize), #[error(transparent)] RequestError(#[from] RequestError), + #[error("error while executing operation in the network: {cause}")] + OperationError { cause: Cow<'static, str> }, #[error("peer should shutdown")] Shutdown, }