Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include which illegal character was found in a faulty variable and in which attribute #451

Open
phackstock opened this issue Jan 7, 2025 · 0 comments · May be fixed by #456
Open

Include which illegal character was found in a faulty variable and in which attribute #451

phackstock opened this issue Jan 7, 2025 · 0 comments · May be fixed by #456
Assignees
Labels
enhancement New feature or request

Comments

@phackstock
Copy link
Contributor

phackstock commented Jan 7, 2025

Currently, we only get the information that an illegal character was found, not which one which makes trouble shooting unnecessarily tedious.
As an example, I get this output for one of our old repositories:

...
  1625. Unexpected character in variable: 'Final Energy|Non-Energy Use'. Check for illegal characters and/or if tags were spelled correctly.
  1626. Unexpected character in variable: 'Final Energy|Non-Energy Use|Biomass'. Check for illegal characters and/or if tags were spelled correctly.
  1627. Unexpected character in variable: 'Final Energy|Non-Energy Use|Coal'. Check for illegal characters and/or if tags were spelled correctly.
  1628. Unexpected character in variable: 'Final Energy|Non-Energy Use|Gas'. Check for illegal characters and/or if tags were spelled 
...

EDIT:
After bilateral discussion with @dc-almeida, I understand the above check also affects attributes and not only the variable name. This should also be reflected in the error message.
Something like:

...
  1625. Unexpected character ';' in variable.description of: 'Final Energy|Non-Energy Use'. Check for illegal characters and/or if tags were spelled correctly.
...
@phackstock phackstock added the enhancement New feature or request label Jan 7, 2025
@phackstock phackstock changed the title Include which illegal character was found in a faulty variable name Include which illegal character was found in a faulty variable and in which attribute Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants