From 9a9633dbc50430185a49cfda489bc87bed838d7c Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Wed, 3 Jun 2015 16:21:07 +0300 Subject: [PATCH] Do not ignore unknown options so far --- src/ejabberd_config.erl | 5 +++-- src/gen_mod.erl | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index efc70ed57..2ea35ed83 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -749,8 +749,9 @@ validate_opts(#state{opts = Opts} = State) -> true end; _ -> - ?ERROR_MSG("ignoring uknown option '~s'", [Opt]), - false + ?ERROR_MSG("unknown option '~s' will be likely" + " ignored", [Opt]), + true end end, Opts), State#state{opts = NewOpts}. diff --git a/src/gen_mod.erl b/src/gen_mod.erl index 2f9d3dd9e..3dcf4fcfd 100644 --- a/src/gen_mod.erl +++ b/src/gen_mod.erl @@ -248,9 +248,10 @@ validate_opts(Module, Opts) -> end; L when is_list(L) -> SOpts = str:join([[$', atom_to_list(A), $'] || A <- L], <<", ">>), - ?ERROR_MSG("ignoring unknown option '~s' for module '~s'," - " available options are: ~s", [Opt, Module, SOpts]), - false; + ?ERROR_MSG("unknown option '~s' for module '~s' will be" + " likely ignored, available options are: ~s", + [Opt, Module, SOpts]), + true; {'EXIT', {undef, _}} -> ?WARNING_MSG("module '~s' doesn't export mod_opt_type/1", [Module]),