Skip to content

Commit

Permalink
Improve missing column error
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Jan 21, 2025
1 parent c6c9212 commit 2a39d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray_ms/backend/msv2/main_dataset_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _variable_from_column(self, column: str) -> Variable:
try:
schema = MSV4_to_MSV2_COLUMN_SCHEMAS[column]
except KeyError:
raise KeyError(f"No Column Schema exist for {column}")
raise KeyError(f"Column {column} was not present")

try:
column_desc = main_column_descs[schema.name]
Expand Down

0 comments on commit 2a39d3b

Please sign in to comment.