From 17fd3f20238fb8cf98adbcfc6b110c133517c2a3 Mon Sep 17 00:00:00 2001 From: Fabien Lelaquais Date: Wed, 27 Nov 2024 10:00:09 +0100 Subject: [PATCH] Better warning --- tools/_setup_generation/step_viselements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/_setup_generation/step_viselements.py b/tools/_setup_generation/step_viselements.py index e328ca5e1..a3ac16f2d 100644 --- a/tools/_setup_generation/step_viselements.py +++ b/tools/_setup_generation/step_viselements.py @@ -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: