Skip to content

Commit

Permalink
Better warning
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienLelaquais committed Nov 27, 2024
1 parent 6ecabff commit 17fd3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/_setup_generation/step_viselements.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def __generate_element_doc(self, element_type: str, category: str):
MUI_ICON_RE = re.compile(r"\[MUI\s*:s*(.*?)s*\]")
for m in MUI_ICON_RE.finditer(after_properties):
if m[1] not in self.mui_icons:
print(f"WARNING: Unknown MUI icon used in element '{element_type}'")
print(f"WARNING: Unknown MUI icon '{m[1]}' used in doc for element '{element_type}'")

# Generate the Markdown output
with open(f"{element_desc['doc_path']}/{element_type}.md", "w") as md_file:
Expand Down

0 comments on commit 17fd3f2

Please sign in to comment.