diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-01-26 15:01:10 -0500 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-01-26 15:01:10 -0500 |
commit | 8dc39de9839b79d19ba9577d655669325184cb75 (patch) | |
tree | 5f12423728cc1b41e8358eb69d63e92e2a1f991e /src/rebar_prv_compile.erl | |
parent | 3bb1f3720eee65c3f21f0f1081435a8756b4f3e5 (diff) | |
parent | 2c86edab93557528015e5baf0b10bb6580c1cd3d (diff) |
Merge pull request #112 from tsloughter/stuff
Clean up and backwards compatability
Diffstat (limited to 'src/rebar_prv_compile.erl')
-rw-r--r-- | src/rebar_prv_compile.erl | 9 |
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 |