Przeglądaj źródła

Merge pull request #81 from massemanet/patch-1

More error logging
pull/3/head
Dave Smith 12 lat temu
rodzic
commit
1a083672b1
1 zmienionych plików z 2 dodań i 0 usunięć
  1. +2
    -0
      src/rebar_base_compiler.erl

+ 2
- 0
src/rebar_base_compiler.erl Wyświetl plik

@ -226,6 +226,8 @@ format_warnings(Config, Source, Warnings, Opts) ->
maybe_report([{error, {error, _Es, _Ws}=ErrorsAndWarnings}, {source, _}]) ->
maybe_report(ErrorsAndWarnings);
maybe_report([{error, E}, {source, S}]) ->
report(["unexpected error compiling " ++ S, io_lib:fwrite("~n~p~n", [E])]);
maybe_report({error, Es, Ws}) ->
report(Es),
report(Ws);

Ładowanie…
Anuluj
Zapisz