Pārlūkot izejas kodu

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 2 nedēļas atpakaļ
vecāks
revīzija
b389c5d5b9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      util/untranslated_entities.py

+ 1 - 1
util/untranslated_entities.py

@@ -27,7 +27,7 @@ def main() -> int:
             slug = slugify(entity.name)
             slug = slugify(entity.name)
             if slug in translations:
             if slug in translations:
                 print(
                 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
     return 0