소스 검색

Revert try-catch

pull/1984/head
mopp 6 년 전
부모
커밋
ab68f3df26
1개의 변경된 파일8개의 추가작업 그리고 12개의 파일을 삭제
  1. +8
    -12
      src/rebar_prv_eunit.erl

+ 8
- 12
src/rebar_prv_eunit.erl 파일 보기

@ -40,18 +40,14 @@ init(State) ->
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do(State) ->
try
Tests = prepare_tests(State),
%% inject `eunit_first_files`, `eunit_compile_opts` and any
%% directories required by tests into the applications
NewState = inject_eunit_state(State, Tests),
case compile(NewState) of
%% successfully compiled apps
{ok, S} -> do(S, Tests);
Error -> Error
end
catch
throw:Reason -> {error, Reason}
Tests = prepare_tests(State),
%% inject `eunit_first_files`, `eunit_compile_opts` and any
%% directories required by tests into the applications
NewState = inject_eunit_state(State, Tests),
case compile(NewState) of
%% successfully compiled apps
{ok, S} -> do(S, Tests);
Error -> Error
end.
do(State, Tests) ->

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