diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-05 21:02:14 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-11 19:42:00 +0200 |
commit | 8a2274b8b4b060c3de03db682796b48d903804e2 (patch) | |
tree | 23192d16ee92b5a8db201d036afafca804b1a7df /src/rebar_lfe_compiler.erl | |
parent | 0716cf708ca3d3d61d2435b88e6d68410a49db6e (diff) | |
download | rebar-8a2274b8b4b060c3de03db682796b48d903804e2.tar.gz |
Refactor shared error reporting code
Diffstat (limited to 'src/rebar_lfe_compiler.erl')
-rw-r--r-- | src/rebar_lfe_compiler.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl index 7d4f004..d688e9c 100644 --- a/src/rebar_lfe_compiler.erl +++ b/src/rebar_lfe_compiler.erl @@ -63,10 +63,9 @@ compile_lfe(Source, _Target, Config) -> ++ rebar_config:get_list(Config, erl_opts, []), case lfe_comp:file(Source, Opts) of {ok, _Mod, Ws} -> - {ok, rebar_base_compiler:format_warnings(Source, Ws)}; + rebar_base_compiler:ok_tuple(Source, Ws); {error, Es, Ws} -> - {error, rebar_base_compiler:format_errors(Source, Es), - rebar_base_compiler:format_warnings(Source, Ws, Opts)}; + rebar_base_compiler:error_tuple(Source, Es, Ws, Opts); _ -> ?ABORT end |