aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Henoch <[email protected]>2015-12-18 14:49:43 +0000
committerMagnus Henoch <[email protected]>2016-03-17 16:42:51 +0000
commitca946a3c64573295d289dbd556c375ec5259c4b3 (patch)
tree84a3f15ac23ddf380897768562dba81359475ded
parent5e1b5ef47f3f2b898d30e0425823835bd9a574d4 (diff)
downloadotp-ca946a3c64573295d289dbd556c375ec5259c4b3.tar.gz
otp-ca946a3c64573295d289dbd556c375ec5259c4b3.tar.bz2
otp-ca946a3c64573295d289dbd556c375ec5259c4b3.zip
More informative malformed_ssl_dist_opt error
-rw-r--r--lib/ssl/src/ssl_tls_dist_proxy.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_tls_dist_proxy.erl b/lib/ssl/src/ssl_tls_dist_proxy.erl
index 4c789793ec..75562d6fae 100644
--- a/lib/ssl/src/ssl_tls_dist_proxy.erl
+++ b/lib/ssl/src/ssl_tls_dist_proxy.erl
@@ -420,8 +420,8 @@ ssl_options(server, ["server_dhfile", Value|T]) ->
[{dhfile, Value} | ssl_options(server,T)];
ssl_options(server, ["server_fail_if_no_peer_cert", Value|T]) ->
[{fail_if_no_peer_cert, atomize(Value)} | ssl_options(server,T)];
-ssl_options(_,_) ->
- exit(malformed_ssl_dist_opt).
+ssl_options(Type, Opts) ->
+ error(malformed_ssl_dist_opt, [Type, Opts]).
atomize(List) when is_list(List) ->
list_to_atom(List);