mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Handle case that module exports mod_doc, but nothing in it
This commit is contained in:
parent
77dacf92d2
commit
77f9254f45
@ -48,7 +48,10 @@ man(Lang) ->
|
||||
{[{M, Descr, DocOpts, #{example => Example}}|Mods], SubMods};
|
||||
#{opts := DocOpts} ->
|
||||
{ParentMod, Backend} = strip_backend_suffix(M),
|
||||
{Mods, dict:append(ParentMod, {M, Backend, DocOpts}, SubMods)}
|
||||
{Mods, dict:append(ParentMod, {M, Backend, DocOpts}, SubMods)};
|
||||
#{} ->
|
||||
warn("module ~s is not properly documented", [M]),
|
||||
Acc
|
||||
catch _:undef ->
|
||||
case erlang:function_exported(
|
||||
M, mod_options, 1) of
|
||||
|
Loading…
Reference in New Issue
Block a user