diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-01 00:04:33 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-11 19:42:00 +0200 |
commit | c3fc279ff9b4620fd101de12f89bd4343575c69b (patch) | |
tree | ebd0657d88aea3112868df632c874e5c295b1c4f /src | |
parent | 658f4847a2f78790fdb5ec4aa82488b904c79502 (diff) |
Manually format lfe errors/warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_lfe_compiler.erl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl index 3fe30b9..7d4f004 100644 --- a/src/rebar_lfe_compiler.erl +++ b/src/rebar_lfe_compiler.erl @@ -59,11 +59,14 @@ compile_lfe(Source, _Target, Config) -> "~n", []), ?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} -> + {ok, rebar_base_compiler:format_warnings(Source, Ws)}; + {error, Es, Ws} -> + {error, rebar_base_compiler:format_errors(Source, Es), + rebar_base_compiler:format_warnings(Source, Ws, Opts)}; _ -> ?ABORT end |