mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Don't emit validator's warning if the module is not found
This commit is contained in:
parent
e070e6bccb
commit
06c480106f
@ -516,9 +516,16 @@ get_validators(Host, {Module, SubMods}) ->
|
||||
[] ->
|
||||
case have_validators(Module) of
|
||||
false ->
|
||||
case code:ensure_loaded(Module) of
|
||||
{module, _} ->
|
||||
?WARNING_MSG("Third-party module '~s' doesn't export "
|
||||
"options validator; consider to upgrade "
|
||||
"the module", [Module]),
|
||||
"the module", [Module]);
|
||||
_ ->
|
||||
%% Silently ignore this, the error will be
|
||||
%% generated later
|
||||
ok
|
||||
end,
|
||||
undef;
|
||||
true ->
|
||||
[]
|
||||
|
Loading…
Reference in New Issue
Block a user