From eed09dfdf93dd0b4cd2f2a724d9aee2c91eb56fc Mon Sep 17 00:00:00 2001 From: Duarte Nunes Date: Mon, 21 May 2018 14:37:53 +0100 Subject: [PATCH] mutation_partition: Throw std::out_of_range with backtrace on cell_at Makes it easier to investigate bugs. Signed-off-by: Duarte Nunes Message-Id: <20180521133753.16375-1-duarte@scylladb.com> --- mutation_partition.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutation_partition.cc b/mutation_partition.cc index 1ee3a45b25..91dca23d43 100644 --- a/mutation_partition.cc +++ b/mutation_partition.cc @@ -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(sprint("Column not found for id = %d", id)); } return *cell; }