mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Do not ignore unknown options so far
This commit is contained in:
parent
c1119b1f39
commit
9a9633dbc5
@ -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}.
|
||||
|
@ -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]),
|
||||
|
Loading…
Reference in New Issue
Block a user