mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
Throw error when tls has no_certfile, instead of returning error tuple
This commit is contained in:
parent
8d783bae15
commit
3bcc60066e
@ -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}) ->
|
||||
|
Loading…
Reference in New Issue
Block a user