Skip to content

Commit 3ab3159

Browse files
committed
cass_error: SerializationError -> INVALID_DATA
INVALID_DATA seems to be an appropriate error code for serialization errors.
1 parent fd0131a commit 3ab3159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla-rust-wrapper/src/cass_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ impl ToCassError for SerializationError {
257257
// It means that our custom `UnknownNamedParameterError` was returned.
258258
CassError::CASS_ERROR_LIB_NAME_DOES_NOT_EXIST
259259
} else {
260-
CassError::CASS_ERROR_LAST_ENTRY
260+
CassError::CASS_ERROR_LIB_INVALID_DATA
261261
}
262262
}
263263
}

0 commit comments

Comments
 (0)