summaryrefslogtreecommitdiff
path: root/src/rebar_prv_eunit.erl
diff options
context:
space:
mode:
authormopp <hello@mopp.jp>2018-12-30 00:59:41 +0900
committermopp <hello@mopp.jp>2018-12-30 00:59:41 +0900
commitab68f3df269a9254ac08806b34a6f826f0177e02 (patch)
tree5f135d88d51dbaa675793ef9b7704ca9eff9f5c6 /src/rebar_prv_eunit.erl
parent3071319c43c6a8e06f1536bf573584cc402c388e (diff)
Revert try-catch
Diffstat (limited to 'src/rebar_prv_eunit.erl')
-rw-r--r--src/rebar_prv_eunit.erl20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl
index fe0caa2..4cb982e 100644
--- a/src/rebar_prv_eunit.erl
+++ b/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) ->