소스 검색

Use delayed_halt everywhere

pull/3/head
Dave Smith 13 년 전
부모
커밋
ebdb25c5cc
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +4
    -4
      src/rebar.erl
  2. +1
    -1
      src/rebar_utils.erl

+ 4
- 4
src/rebar.erl 파일 보기

@ -54,12 +54,12 @@ main(Args) ->
ok ->
ok;
{error, failed} ->
halt(1);
rebar_utils:delayed_halt(1);
Error ->
%% Nothing should percolate up from rebar_core;
%% Dump this error to console
io:format("Uncaught error in rebar_core: ~p\n", [Error]),
halt(1)
rebar_utils:delayed_halt(1)
end.
%% ====================================================================
@ -186,7 +186,7 @@ parse_args(Args) ->
{error, {Reason, Data}} ->
?ERROR("~s ~p~n~n", [Reason, Data]),
help(),
halt(1)
rebar_utils:delayed_halt(1)
end.
%%
@ -233,7 +233,7 @@ show_info_maybe_halt(Opts, NonOptArgs) ->
[] ->
?CONSOLE("No command to run specified!~n",[]),
help(),
halt(1);
rebar_utils:delayed_halt(1);
_ ->
ok
end.

+ 1
- 1
src/rebar_utils.erl 파일 보기

@ -139,7 +139,7 @@ ensure_dir(Path) ->
-spec abort() -> no_return().
abort() ->
delayed_halt(1).
throw(rebar_abort).
-spec abort(string(), [term()]) -> no_return().
abort(String, Args) ->

불러오는 중...
취소
저장