From d16859d8529df3a4ba54284455ddf26e1ad3fa0d Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Tue, 21 Mar 2023 08:47:25 +1100 Subject: [PATCH] Fix cassandra ResponseError formatting (#1087) --- shotover-proxy/src/transforms/cassandra/connection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shotover-proxy/src/transforms/cassandra/connection.rs b/shotover-proxy/src/transforms/cassandra/connection.rs index 974fe4554..dcdda656e 100644 --- a/shotover-proxy/src/transforms/cassandra/connection.rs +++ b/shotover-proxy/src/transforms/cassandra/connection.rs @@ -31,7 +31,7 @@ struct Request { pub type Response = Result; #[derive(Debug, thiserror::Error)] -#[error("Connection to destination cassandra node {destination} was closed: {cause}")] +#[error("Connection to destination cassandra node {destination} was closed: {cause:?}")] pub struct ResponseError { #[source] pub cause: anyhow::Error, @@ -44,7 +44,7 @@ impl ResponseError { Message::from_frame(Frame::Cassandra(CassandraFrame::shotover_error( self.stream_id, version, - &format!("{:#}", self.cause), + &format!("{}", self), ))) } }