diff options
author | Luis Rascao <luis.rascao@miniclip.com> | 2015-05-05 10:58:39 +0100 |
---|---|---|
committer | Luis Rascao <luis.rascao@miniclip.com> | 2015-05-05 10:58:39 +0100 |
commit | f2560b37a78afadb5a93ed800a6f606aacd5c888 (patch) | |
tree | b9122e27a0ba694b94d96d2bde93e349d3a5edd2 /src/rebar_base_compiler.erl | |
parent | d333362c693571e9517e60ea42d2fb556d4f00f3 (diff) | |
download | rebar-f2560b37a78afadb5a93ed800a6f606aacd5c888.tar.gz |
Fix crash on failed build console output
Diffstat (limited to 'src/rebar_base_compiler.erl')
-rw-r--r-- | src/rebar_base_compiler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index f49fc85..1b936f2 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -173,10 +173,10 @@ compile_queue(Config, Pids, Targets) -> compile_queue(Config, Pids, Rest) end; - {fail, {_, {source, Source}}=Error} -> + {fail, {_, {source, Unit}}=Error} -> maybe_report(Error), ?CONSOLE("Compiling ~s failed:\n", - [maybe_absname(Config, Source)]), + [unit_source(Unit)]), ?DEBUG("Worker compilation failed: ~p\n", [Error]), case rebar_config:get_xconf(Config, keep_going, false) of false -> |