Expand catch block used to report errors in doc generator

This commit is contained in:
Paweł Chmielowski 2017-07-14 17:18:07 +02:00
parent 33a9d6a3c3
commit 2cd193f97c
1 changed files with 30 additions and 30 deletions

View File

@ -351,6 +351,7 @@ gen_param(Name, Type, Desc, HTMLOutput) ->
gen_doc(#ejabberd_commands{name=Name, tags=_Tags, desc=Desc, longdesc=LongDesc,
args=Args, args_desc=ArgsDesc,
result=Result, result_desc=ResultDesc}=Cmd, HTMLOutput, Langs) ->
try
LDesc = case LongDesc of
"" -> Desc;
_ -> LongDesc
@ -381,7 +382,6 @@ gen_doc(#ejabberd_commands{name=Name, tags=_Tags, desc=Desc, longdesc=LongDesc,
end
end,
try
[?TAG(h1, [?TAG(strong, atom_to_list(Name)), <<" - ">>, ?RAW(Desc)]),
?TAG(p, ?RAW(LDesc)),
?TAG(h2, <<"Arguments:">>), ArgsText,