summaryrefslogtreecommitdiff
path: root/src/rebar_prv_compile.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_compile.erl')
-rw-r--r--src/rebar_prv_compile.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/rebar_prv_compile.erl b/src/rebar_prv_compile.erl
index b247603..073394c 100644
--- a/src/rebar_prv_compile.erl
+++ b/src/rebar_prv_compile.erl
@@ -85,8 +85,13 @@ build_apps(State, Apps) ->
build(State, AppInfo) ->
?INFO("Compiling ~s", [rebar_app_info:name(AppInfo)]),
rebar_erlc_compiler:compile(State, ec_cnv:to_list(rebar_app_info:dir(AppInfo))),
- {ok, AppInfo1} = rebar_otp_app:compile(State, AppInfo),
- AppInfo1.
+ case rebar_otp_app:compile(State, AppInfo) of
+ {ok, AppInfo1} ->
+ AppInfo1;
+ Error ->
+ throw(Error)
+ end.
+
%% ===================================================================
%% Internal functions