Skip to content

Commit 2aad281

Browse files
authored
Merge pull request #297 from muzarski/empty-plan=no-hosts-available
errors: make EmptyPlan return LIB_NO_HOSTS_AVAILABLE
2 parents ecc3310 + dd1c428 commit 2aad281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla-rust-wrapper/src/cass_error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl ToCassError for ExecutionError {
3232
match self {
3333
ExecutionError::BadQuery(bad_query) => bad_query.to_cass_error(),
3434
ExecutionError::RequestTimeout(_) => CassError::CASS_ERROR_LIB_REQUEST_TIMED_OUT,
35-
ExecutionError::EmptyPlan => CassError::CASS_ERROR_LIB_INVALID_STATE,
35+
ExecutionError::EmptyPlan => CassError::CASS_ERROR_LIB_NO_HOSTS_AVAILABLE,
3636
ExecutionError::MetadataError(e) => e.to_cass_error(),
3737
ExecutionError::ConnectionPoolError(e) => e.to_cass_error(),
3838
ExecutionError::PrepareError(e) => e.to_cass_error(),

0 commit comments

Comments
 (0)