From 5b3082f44350710a61d9e8f5b33b9463e9e3d818 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Wed, 1 Jun 2011 14:27:16 +0200 Subject: [PATCH] Fix erlc regression (reported-by Benoit Chesneau) --- src/rebar_erlc_compiler.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 6567f06..08b663a 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -252,9 +252,9 @@ internal_erl_compile(Source, Config, Outdir, ErlOpts) -> case needs_compile(Source, Target, Hrls) of true -> Opts = [{outdir, filename:dirname(Target)}] ++ - ErlOpts ++ [{i, "include"}, report, return], + ErlOpts ++ [{i, "include"}, report, return_errors], case compile:file(Source, Opts) of - {ok, _, []} -> + {ok, _} -> ok; _ -> ?FAIL