aboutsummaryrefslogtreecommitdiff
path: root/src/tls
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-06-17 18:47:11 +0200
committerBadlop <badlop@process-one.net>2010-06-17 22:39:01 +0200
commit3bcc60066e4864ca3a08f0c6fe3651514052061e (patch)
tree7df4e7811e2ed03c174c88c339950f9275e28559 /src/tls
parentFix 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.erl2
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}) ->