Skip to content

Commit 090b25e

Browse files
chengzhuzhangtomvothecoder
authored andcommitted
more informative log
1 parent 585167e commit 090b25e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e3sm_diags/driver/utils/dataset_xr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,12 +758,12 @@ def _get_dataset_with_derived_climo_var(self, ds: xr.Dataset) -> xr.Dataset:
758758
return ds_derived
759759

760760
# None of the entries in the derived variables dictionary worked,
761-
# so try to get the variable directly from he dataset.
761+
# so try to get the variable directly from the dataset.
762762
if target_var in ds.data_vars.keys():
763763
return ds
764764

765765
raise IOError(
766-
f"The dataset file has no matching source variables for {target_var}"
766+
f"Neither does {target_var}, nor the variables in {list(target_var_map.keys())} exist in the dataset file."
767767
)
768768

769769
def _get_matching_climo_src_vars(

0 commit comments

Comments
 (0)