diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2014-01-11 22:21:31 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2014-01-15 19:29:00 +0100 |
commit | 2f2e7c48894f58c4268d8191f42fad806c419b4b (patch) | |
tree | 53b712557f62db1117f683334d303ae69a3596c1 /src | |
parent | 97c9fdf31acad6c38a02e6433787749d7ac143ab (diff) |
rebar_base_compiler: replace fixed size list with a tuple
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_base_compiler.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 2050771..1957070 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -161,7 +161,7 @@ compile_queue(Config, Pids, Targets) -> compile_queue(Config, Pids, Rest) end; - {fail, [_, {source, Source}}=Error] -> + {fail, {_, {source, Source}}=Error} -> ?CONSOLE("Compiling ~s failed:\n", [maybe_absname(Config, Source)]), maybe_report(Error), @@ -206,8 +206,7 @@ compile_worker(QueuePid, Config, CompileFn) -> QueuePid ! {skipped, Source}, compile_worker(QueuePid, Config, CompileFn); Error -> - QueuePid ! {fail, [{error, Error}, - {source, Source}]}, + QueuePid ! {fail, {{error, Error}, {source, Source}}}, ok end; @@ -228,7 +227,7 @@ format_warnings(Config, Source, Warnings, Opts) -> end, format_errors(Config, Source, Prefix, Warnings). -maybe_report([{error, {error, _Es, _Ws}=ErrorsAndWarnings}, {source, _}]) -> +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])]); |