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 1a24b92 commit f1eab36
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 @@ -149,15 +149,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 f1eab36

Please sign in to comment.