From 3bcc60066e4864ca3a08f0c6fe3651514052061e Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 17 Jun 2010 18:47:11 +0200 Subject: [PATCH] Throw error when tls has no_certfile, instead of returning error tuple --- src/tls/tls.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) ->