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

Throw error when tls has no_certfile, instead of returning error tuple

This commit is contained in:
Badlop 2010-06-17 18:47:11 +02:00
parent 8d783bae15
commit 3bcc60066e

View File

@ -141,7 +141,7 @@ tcp_to_tls(TCPSocket, Options) ->
{error, binary_to_list(Error)}
end;
false ->
{error, no_certfile}
throw(no_certfile)
end.
tls_to_tcp(#tlssock{tcpsock = TCPSocket, tlsport = Port}) ->