Selaa lähdekoodia

Manually format lfe errors/warnings

pull/3/head
Tuncer Ayaz 13 vuotta sitten
vanhempi
commit
c3fc279ff9
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. +6
    -3
      src/rebar_lfe_compiler.erl

+ 6
- 3
src/rebar_lfe_compiler.erl Näytä tiedosto

@ -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;
{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 ?ABORT
end end

Ladataan…
Peruuta
Tallenna