summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-10-01 13:41:55 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-10-01 13:41:55 +0200
commit778d4350b375370ca340038ff602a34ffb30cad9 (patch)
treec2a87ee200c4d2ef2804bbc5a10e498aa9966ef1
parent171242558829ddbea35d5649cbe14f99dc9537e9 (diff)
Fix warning: access the right record field
-rw-r--r--src/rebar_erlc_compiler.erl2
1 files changed, 1 insertions, 1 deletions
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 ->