diff --git a/src/textual/widgets/_data_table.py b/src/textual/widgets/_data_table.py index 991760f12..b2818b8cb 100644 --- a/src/textual/widgets/_data_table.py +++ b/src/textual/widgets/_data_table.py @@ -588,7 +588,7 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True): for the new cell content. """ if not self.is_valid_coordinate(coordinate): - raise CellDoesNotExist() + raise CellDoesNotExist(f"Coordinate {coordinate!r} is invalid.") row_key, column_key = self.coordinate_to_cell_key(coordinate) self.update_cell(row_key, column_key, value, update_width=update_width)