mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
mutation_partition: Throw std::out_of_range with backtrace on cell_at
Makes it easier to investigate bugs. Signed-off-by: Duarte Nunes <duarte@scylladb.com> Message-Id: <20180521133753.16375-1-duarte@scylladb.com>
This commit is contained in:
@@ -1439,7 +1439,7 @@ row::cell_entry::cell_entry(cell_entry&& o) noexcept
|
||||
const atomic_cell_or_collection& row::cell_at(column_id id) const {
|
||||
auto&& cell = find_cell(id);
|
||||
if (!cell) {
|
||||
throw std::out_of_range(sprint("Column not found for id = %d", id));
|
||||
throw_with_backtrace<std::out_of_range>(sprint("Column not found for id = %d", id));
|
||||
}
|
||||
return *cell;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user