mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Manually format lfe errors/warnings
This commit is contained in:
parent
658f4847a2
commit
c3fc279ff9
1 changed files with 6 additions and 3 deletions
|
@ -59,11 +59,14 @@ compile_lfe(Source, _Target, Config) ->
|
||||||
"~n", []),
|
"~n", []),
|
||||||
?ABORT;
|
?ABORT;
|
||||||
_ ->
|
_ ->
|
||||||
Opts = [{i, "include"}, {outdir, "ebin"}, report]
|
Opts = [{i, "include"}, {outdir, "ebin"}, return]
|
||||||
++ rebar_config:get_list(Config, erl_opts, []),
|
++ rebar_config:get_list(Config, erl_opts, []),
|
||||||
case lfe_comp:file(Source, Opts) of
|
case lfe_comp:file(Source, Opts) of
|
||||||
{ok, _} ->
|
{ok, _Mod, Ws} ->
|
||||||
ok;
|
{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
|
?ABORT
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue