Skip to content

Commit

Permalink
Fix cassandra ResponseError formatting (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Mar 20, 2023
1 parent bd5d563 commit d16859d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shotover-proxy/src/transforms/cassandra/connection.rs
Expand Up @@ -31,7 +31,7 @@ struct Request {
pub type Response = Result<Message, ResponseError>;

#[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,
Expand All @@ -44,7 +44,7 @@ impl ResponseError {
Message::from_frame(Frame::Cassandra(CassandraFrame::shotover_error(
self.stream_id,
version,
&format!("{:#}", self.cause),
&format!("{}", self),
)))
}
}
Expand Down

0 comments on commit d16859d

Please sign in to comment.