mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Manually format leex/yecc errors/warnings
This commit is contained in:
parent
50fbabda68
commit
4b9fcda7ab
1 changed files with 6 additions and 3 deletions
|
@ -318,11 +318,14 @@ compile_yrl(Source, Target, Config) ->
|
|||
compile_xrl_yrl(Source, Target, Opts, Mod) ->
|
||||
case needs_compile(Source, Target, []) of
|
||||
true ->
|
||||
case Mod:file(Source, Opts) of
|
||||
case Mod:file(Source, Opts ++ [{return, true}]) of
|
||||
{ok, _} ->
|
||||
ok;
|
||||
_X ->
|
||||
?ABORT
|
||||
{ok, _Mod, Ws} ->
|
||||
{ok, format_errors(Source, "Warning: ", Ws)};
|
||||
{error, Es, Ws} ->
|
||||
{error, format_errors(Source, Es),
|
||||
format_errors(Source, "Warning: ", Ws)}
|
||||
end;
|
||||
false ->
|
||||
skipped
|
||||
|
|
Loading…
Reference in a new issue