summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ->