From 63a69af04b27ceb5dcfe7dd7c7ff5b46db1c5a7b Mon Sep 17 00:00:00 2001 From: mats cronqvist Date: Fri, 12 Apr 2013 21:21:53 +0300 Subject: [PATCH] More error logging rebar throws away some error messages, e.g. the ones generated if the yecc compiler is broken. --- src/rebar_base_compiler.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 260cdaf..a0dec30 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -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);