mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Log warning on empty wildcard paths
This commit is contained in:
parent
f1ac793d56
commit
e15a9a2b9e
1 changed files with 14 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue