1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

Log warning on empty wildcard paths

This commit is contained in:
Evgeniy Khramtsov 2017-12-08 12:50:10 +03:00
parent f1ac793d56
commit e15a9a2b9e

View file

@ -295,7 +295,20 @@ get_certfiles_from_config_options(_State) ->
undefined -> undefined ->
[]; [];
Paths -> Paths ->
lists:flatmap(fun wildcard/1, Paths) lists:flatmap(
fun(Path) ->
case wildcard(Path) of
[] ->
?WARNING_MSG(
"Path ~s is empty, please "
"make sure ejabberd has "
"sufficient rights to read it",
[Path]),
[];
Fs ->
Fs
end
end, Paths)
end, end,
Local = lists:flatmap( Local = lists:flatmap(
fun(OptHost) -> fun(OptHost) ->