Browse Source

More error logging

rebar throws away some error messages, e.g. the ones generated if the yecc compiler is broken.
pull/3/head
mats cronqvist 12 years ago
parent
commit
63a69af04b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/rebar_base_compiler.erl

+ 2
- 0
src/rebar_base_compiler.erl View File

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

Loading…
Cancel
Save