mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Log warning on empty wildcard paths
This commit is contained in:
parent
f1ac793d56
commit
e15a9a2b9e
@ -295,7 +295,20 @@ get_certfiles_from_config_options(_State) ->
|
||||
undefined ->
|
||||
[];
|
||||
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,
|
||||
Local = lists:flatmap(
|
||||
fun(OptHost) ->
|
||||
|
Loading…
Reference in New Issue
Block a user