Skip to content

Commit d8f50ce

Browse files
Merge pull request #229 from riscv/copilot/sub-pr-227-again
Fix spacing and sorting of allowed values in impldef_category_to_csr_category error message
2 parents 10d84a9 + 427fadf commit d8f50ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/shared_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def impldef_category_to_csr_category(
4545
"""
4646
result = IMPLDEF_CATEGORY_TO_CSR_CATEGORY.get(impldef_cat)
4747
if result is None:
48-
allowed_str = ",".join(IMPLDEF_CATEGORY_TO_CSR_CATEGORY)
48+
allowed_str = ", ".join(sorted(IMPLDEF_CATEGORY_TO_CSR_CATEGORY))
4949
fatal(
5050
f"No CSR category mapping for impl-def-category {impldef_cat!r}. "
5151
f"Allowed impl-def-categories are: {allowed_str}"

0 commit comments

Comments
 (0)