chore: fix scripts/check-i18n-style.escript to exit with 1 when there are errors
This commit is contained in:
parent
43116a0797
commit
dce2719c30
|
@ -16,9 +16,9 @@ main([Files0]) ->
|
||||||
ok = lists:foreach(fun check/1, Files),
|
ok = lists:foreach(fun check/1, Files),
|
||||||
case get(errors) of
|
case get(errors) of
|
||||||
1 ->
|
1 ->
|
||||||
logerr("1 error found~n", []);
|
die("1 error found~n", []);
|
||||||
N when is_integer(N) andalso N > 1 ->
|
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", [])
|
io:format(user, "~nOK~n", [])
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue