From dce2719c30f6a13b9e8e27c20a84cca61b2b00f1 Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Fri, 4 Aug 2023 07:19:49 +0200 Subject: [PATCH] chore: fix scripts/check-i18n-style.escript to exit with 1 when there are errors --- scripts/check-i18n-style.escript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-i18n-style.escript b/scripts/check-i18n-style.escript index b8b6bdac7..f48e5a513 100755 --- a/scripts/check-i18n-style.escript +++ b/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.