diff --git a/nomenclature/codelist.py b/nomenclature/codelist.py index 167d7ad4..496a5411 100644 --- a/nomenclature/codelist.py +++ b/nomenclature/codelist.py @@ -801,11 +801,11 @@ def check_directional_regions(cls, v: dict[str, RegionCode]): if region.is_directional: if region.origin not in v: missing_regions.append( - f"Region '{region.origin}' not defined for '{region.name}'" + f"Origin '{region.origin}' not defined for '{region.name}'" ) if region.destination not in v: missing_regions.append( - f"Region '{region.destination}' not defined for '{region.name}'" + f"Destination '{region.destination}' not defined for '{region.name}'" ) if missing_regions: raise ValueError("\n".join(missing_regions))