Procházet zdrojové kódy

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 před 3 měsíci
rodič
revize
b389c5d5b9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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