diff --git a/pallas-miniprotocols/src/blockfetch/client.rs b/pallas-miniprotocols/src/blockfetch/client.rs index 1ec3ddf7..44a836f3 100644 --- a/pallas-miniprotocols/src/blockfetch/client.rs +++ b/pallas-miniprotocols/src/blockfetch/client.rs @@ -6,7 +6,7 @@ use crate::common::Point; use super::{Message, State}; -#[derive(Error, Debug)] +#[derive(Error, Debug, Clone)] pub enum Error { #[error("attempted to receive message while agency is ours")] AgencyIsOurs, diff --git a/pallas-miniprotocols/src/chainsync/client.rs b/pallas-miniprotocols/src/chainsync/client.rs index 8a93e573..b27ba690 100644 --- a/pallas-miniprotocols/src/chainsync/client.rs +++ b/pallas-miniprotocols/src/chainsync/client.rs @@ -8,7 +8,7 @@ use crate::common::Point; use super::{BlockContent, HeaderContent, Message, State, Tip}; -#[derive(Error, Debug)] +#[derive(Error, Debug, Clone)] pub enum Error { #[error("attempted to receive message while agency is ours")] AgencyIsOurs, diff --git a/pallas-multiplexer/src/agents.rs b/pallas-multiplexer/src/agents.rs index fee74327..12e49f9c 100644 --- a/pallas-multiplexer/src/agents.rs +++ b/pallas-multiplexer/src/agents.rs @@ -4,7 +4,7 @@ use crate::Payload; use pallas_codec::{minicbor, Fragment}; use thiserror::Error; -#[derive(Debug, Error)] +#[derive(Debug, Clone, Error)] pub enum ChannelError { #[error("channel is not connected, failed to send payload")] NotConnected(Option),