aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_cmd_args.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2017-02-02 10:18:20 -0800
committerGitHub <[email protected]>2017-02-02 10:18:20 -0800
commitd3d9bc73afaf4b145d7e6d484096534b297faf7f (patch)
tree3e7231591577f6b6a3b3d24e7400fac16db8f317 /src/rlx_cmd_args.erl
parenta4d7fa1914dd0ea6c53221c3a4056fc23a7bde9d (diff)
parent59ace4da2dbc317a922f3ef0022ccc0455b882da (diff)
downloadrelx-d3d9bc73afaf4b145d7e6d484096534b297faf7f.tar.gz
relx-d3d9bc73afaf4b145d7e6d484096534b297faf7f.tar.bz2
relx-d3d9bc73afaf4b145d7e6d484096534b297faf7f.zip
Merge pull request #559 from lrascao/feature/fix_crash_on_relup_warning
Feature/fix crash on relup warning
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r--src/rlx_cmd_args.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl
index 7f3f39b..b20344c 100644
--- a/src/rlx_cmd_args.erl
+++ b/src/rlx_cmd_args.erl
@@ -282,6 +282,9 @@ create(include_erts, Opts) ->
Erts when is_list(Erts) ->
{include_erts, Erts}
end;
+create(warnings_as_errors, Opts) ->
+ WarningsAsErrors = proplists:get_value(warnings_as_errors, Opts, false),
+ {warnings_as_errors, WarningsAsErrors};
create(_, _) ->
[].