summaryrefslogtreecommitdiff
path: root/src/rebar_lfe_compiler.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_lfe_compiler.erl')
-rw-r--r--src/rebar_lfe_compiler.erl12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl
index d2c2dfe..d688e9c 100644
--- a/src/rebar_lfe_compiler.erl
+++ b/src/rebar_lfe_compiler.erl
@@ -57,14 +57,16 @@ compile_lfe(Source, _Target, Config) ->
" {git, \"git://github.com/rvirding/lfe\",~n"
" {tag, \"v0.6.1\"}}}~n"
"~n", []),
- ?FAIL;
+ ?ABORT;
_ ->
- Opts = [{i, "include"}, {outdir, "ebin"}, report]
+ Opts = [{i, "include"}, {outdir, "ebin"}, return]
++ rebar_config:get_list(Config, erl_opts, []),
case lfe_comp:file(Source, Opts) of
- {ok, _} ->
- ok;
+ {ok, _Mod, Ws} ->
+ rebar_base_compiler:ok_tuple(Source, Ws);
+ {error, Es, Ws} ->
+ rebar_base_compiler:error_tuple(Source, Es, Ws, Opts);
_ ->
- ?FAIL
+ ?ABORT
end
end.