24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-18 22:15:20 +02:00

Add a try catch arounf list certificates

This commit is contained in:
Konstantinos Kallas 2017-07-23 21:47:22 +03:00
parent 9ce1f12b66
commit 09918b5912

View File

@ -51,6 +51,17 @@ is_valid_verbose_opt(_) -> false.
%%
list_certificates(Verbose) ->
try
list_certificates0(Verbose)
catch
throw:Throw ->
Throw;
E:R ->
?ERROR_MSG("Unknown ~p:~p, ~p", [E, R, erlang:get_stacktrace()]),
{error, get_certificates}
end.
list_certificates0(Verbose) ->
{ok, Certs} = read_certificates_persistent(),
case Verbose of
"plain" ->