Skip to content

Commit

Permalink
f_errors: Enrich CqlResultParseError messages with response kind
Browse files Browse the repository at this point in the history
Appended `RESULT:` prefix to RESULT response types.
  • Loading branch information
muzarski committed Sep 17, 2024
1 parent 52c689d commit 7776ff1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scylla-cql/src/frame/frame_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ pub enum CqlResultParseError {
ResultIdParseError(LowLevelDeserializationError),
#[error("Unknown RESULT response id: {0}")]
UnknownResultId(i32),
#[error("'Set_keyspace' response deserialization failed: {0}")]
#[error("RESULT:Set_keyspace response deserialization failed: {0}")]
SetKeyspaceParseError(#[from] SetKeyspaceParseError),
// This is an error returned during deserialization of
// `RESULT::Schema_change` response, and not `EVENT` response.
#[error("'Schema_change' response deserialization failed: {0}")]
#[error("RESULT:Schema_change response deserialization failed: {0}")]
SchemaChangeParseError(#[from] SchemaChangeEventParseError),
#[error("'Prepared' response deserialization failed: {0}")]
#[error("RESULT:Prepared response deserialization failed: {0}")]
PreparedParseError(#[from] PreparedParseError),
#[error("'Rows' response deserialization failed: {0}")]
#[error("RESULT:Rows response deserialization failed: {0}")]
RowsParseError(#[from] RowsParseError),
}

Expand Down

0 comments on commit 7776ff1

Please sign in to comment.