More error logging

rebar throws away some error messages, e.g. the ones generated if the yecc compiler is broken.
This commit is contained in:
mats cronqvist 2013-04-12 21:21:53 +03:00
parent 98d7ec931b
commit 63a69af04b

View file

@ -226,6 +226,8 @@ format_warnings(Config, Source, Warnings, Opts) ->
maybe_report([{error, {error, _Es, _Ws}=ErrorsAndWarnings}, {source, _}]) -> maybe_report([{error, {error, _Es, _Ws}=ErrorsAndWarnings}, {source, _}]) ->
maybe_report(ErrorsAndWarnings); 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}) -> maybe_report({error, Es, Ws}) ->
report(Es), report(Es),
report(Ws); report(Ws);