basho/rebar — pull request #251 by nevar (2012-06-18 03:50:26+00:00)
Title: Fix compile crash

When file name and module name of erl don't match, rebar abort without message of error.

```erlang
DEBUG: Worker compilation failed: [{error,
{'EXIT',
{function_clause,
[{rebar_base_compiler,format_error,
["/home/yurin/project/test/src/test.erl",
[],
{compile,
{module_name,test1,
"test"}}]},
{rebar_base_compiler,
'-format_errors/3-lc$^1/1-1-',3},
{rebar_base_compiler,
'-format_errors/3-lc$^0/1-0-',3},
{rebar_base_compiler,error_tuple,4},
{rebar_base_compiler,compile,3},
{rebar_base_compiler,compile_worker,
3}]}}},
{source,"src/test.erl"}]
ERROR: compile failed while processing /home/yurin/test: rebar_abort
```