From 778d4350b375370ca340038ff602a34ffb30cad9 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Fri, 1 Oct 2010 13:41:55 +0200 Subject: [PATCH] Fix warning: access the right record field --- src/rebar_erlc_compiler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 06070c9..89c0707 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -253,7 +253,7 @@ compile_xrl_yrl(Source, Target, Config, Opts, Mod) -> {ok, _, []} -> ok; {ok, _, _Warnings} -> - case lists:member(fail_on_warnings, Config) of + case lists:member(fail_on_warnings, Config#config.opts) of true -> ?FAIL; false ->