Merge pull request #81 from massemanet/patch-1

More error logging
This commit is contained in:
Dave Smith 2013-04-12 11:23:55 -07:00
commit 1a083672b1

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