Просмотр исходного кода

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 1 неделя назад
Родитель
Сommit
b389c5d5b9
1 измененных файлов с 1 добавлено и 1 удалено
  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