Quellcode durchsuchen

tests (untranslated_entities): surface the errors as errors

Messages are now showing as Warnings in the output, but are not shown
inline in the PR, as they are only warnings. Elevate them to errors.
Jason Rumney vor 5 Tagen
Ursprung
Commit
b389c5d5b9
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      util/untranslated_entities.py

+ 1 - 1
util/untranslated_entities.py

@@ -27,7 +27,7 @@ def main() -> int:
             slug = slugify(entity.name)
             if slug in translations:
                 print(
-                    f"::warning file={config},line={entity._config.__line__}:: Entity can use translation_key: {slug}"
+                    f"::error file={config},line={entity._config.__line__}:: Entity can use translation_key: {slug}"
                 )
     return 0