Skip to content

Commit

Permalink
Alphabetic order of parameters in error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwaroquiers committed Nov 16, 2023
1 parent 62811f7 commit a9fba7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtoolkit/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def generate_header(self, options: dict | QResources | None) -> str:
keys = set(options.keys())
extra = keys.difference(template.get_identifiers())
if extra:
msg = f"The following keys are not present in the template: {', '.join(extra)}"
msg = f"The following keys are not present in the template: {', '.join(sorted(extra))}"

Check warning on line 86 in src/qtoolkit/io/base.py

View check run for this annotation

Codecov / codecov/patch

src/qtoolkit/io/base.py#L86

Added line #L86 was not covered by tests
raise ValueError(msg)

unclean_header = template.safe_substitute(options)
Expand Down

0 comments on commit a9fba7a

Please sign in to comment.