From 07ec6b68c67b9ebc19c9432a4f5a2cc9aa2512a5 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 24 Jan 2015 13:15:29 -0600 Subject: clean up and better error messages when validating apps --- src/rebar_prv_compile.erl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/rebar_prv_compile.erl') 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 -- cgit v1.1