소스 검색

Manually format leex/yecc errors/warnings

pull/3/head
Tuncer Ayaz 13 년 전
부모
커밋
4b9fcda7ab
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. +6
    -3
      src/rebar_erlc_compiler.erl

+ 6
- 3
src/rebar_erlc_compiler.erl 파일 보기

@ -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

불러오는 중...
취소
저장