Browse Source

chore: fix scripts/check-i18n-style.escript to exit with 1 when there are errors

Ivan Dyachkov 2 years atrás
parent
commit
dce2719c30
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/check-i18n-style.escript

+ 2 - 2
scripts/check-i18n-style.escript

@@ -16,9 +16,9 @@ main([Files0]) ->
     ok = lists:foreach(fun check/1, Files),
     case get(errors) of
         1 ->
-            logerr("1 error found~n", []);
+            die("1 error found~n", []);
         N when is_integer(N) andalso N > 1 ->
-            logerr("~p errors found~n", [N]);
+            die("~p errors found~n", [N]);
         _ ->
             io:format(user, "~nOK~n", [])
     end.