summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2013-04-12 11:23:55 -0700
committerDave Smith <dizzyd@dizzyd.com>2013-04-12 11:23:55 -0700
commit1a083672b1aaf5e62aefb12a7b8e0fd948dae182 (patch)
tree4cfb16cf5e5ca6ec3ca477f318552aebe55adf22
parent98d7ec931b7616dbc2153db223542f0bdf51e11b (diff)
parent63a69af04b27ceb5dcfe7dd7c7ff5b46db1c5a7b (diff)
Merge pull request #81 from massemanet/patch-1
More error logging
-rw-r--r--src/rebar_base_compiler.erl2
1 files changed, 2 insertions, 0 deletions
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);