Skip to content

Commit

Permalink
Rewrite error message
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at>
  • Loading branch information
dc-almeida and danielhuppmann authored Jan 15, 2025
1 parent 41a41f3 commit cf6c691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomenclature/codelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def _check_string(attr, value):
found = "', '".join(sorted(found))
errors.append(
ValueError(
f"Unexpected character(s) '{found}' in {self.name}.{attr} of: '{code.name}'."
f"Illegal character(s) '{found}' in {attr} of {self.name} '{code.name}'."
" Check for illegal characters and/or if tags were spelled correctly."
)
)
Expand Down

0 comments on commit cf6c691

Please sign in to comment.