From 7776ff1810e1448d4f899024f0363289608ed911 Mon Sep 17 00:00:00 2001 From: muzarski Date: Thu, 29 Aug 2024 16:53:31 +0200 Subject: [PATCH] f_errors: Enrich CqlResultParseError messages with response kind Appended `RESULT:` prefix to RESULT response types. --- scylla-cql/src/frame/frame_errors.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scylla-cql/src/frame/frame_errors.rs b/scylla-cql/src/frame/frame_errors.rs index 155491ef91..f485796295 100644 --- a/scylla-cql/src/frame/frame_errors.rs +++ b/scylla-cql/src/frame/frame_errors.rs @@ -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), }