cql3: Fix exception message in lists::setter_by_index::execute()

Spotted by C* unit tests.

Signed-off-by: Pekka Enberg <penberg@scylladb.com>
This commit is contained in:
Pekka Enberg
2015-10-29 13:30:53 +02:00
parent 6634f37464
commit f4849000c8

View File

@@ -272,7 +272,7 @@ lists::setter_by_index::execute(mutation& m, const exploded_clustering_prefix& p
auto existing_list_opt = params.get_prefetched_list(m.key(), row_key, column);
if (!existing_list_opt) {
throw exceptions::invalid_request_exception(sprint("List index %d out of bound, list has size 0", idx));
throw exceptions::invalid_request_exception("Attempted to set an element on a list which is null");
}
collection_mutation::view existing_list_ser = *existing_list_opt;
auto ltype = dynamic_pointer_cast<const list_type_impl>(column.type);