diff options
author | Badlop <badlop@process-one.net> | 2010-06-17 18:47:11 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2010-06-17 22:39:01 +0200 |
commit | 3bcc60066e4864ca3a08f0c6fe3651514052061e (patch) | |
tree | 7df4e7811e2ed03c174c88c339950f9275e28559 /src/tls | |
parent | Fix roster webadmin display (diff) |
Throw error when tls has no_certfile, instead of returning error tuple
Diffstat (limited to 'src/tls')
-rw-r--r-- | src/tls/tls.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/tls.erl b/src/tls/tls.erl index 9aee54cfb..17bd8f286 100644 --- a/src/tls/tls.erl +++ b/src/tls/tls.erl @@ -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}) -> |