Properly handle compilation errors in Erlang compiler
Merge pull request #2684 from alco/mix-compile-erlang

Properly handle compilation errors in Erlang compiler