aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Henoch <[email protected]>2015-11-09 18:25:56 +0000
committerMagnus Henoch <[email protected]>2015-12-10 15:24:52 +0000
commit91006821c6d65708fa05a93ec1edc2372326a3cb (patch)
tree6cf4dfc74fa035c70b2aaba1801f86e12095e5e8
parent5f49de9d6e8ae247b10e37c085bf1d1dc9945ac8 (diff)
downloadotp-91006821c6d65708fa05a93ec1edc2372326a3cb.tar.gz
otp-91006821c6d65708fa05a93ec1edc2372326a3cb.tar.bz2
otp-91006821c6d65708fa05a93ec1edc2372326a3cb.zip
Report bad options for outgoing TLS distribution
If ssl:connect/3 returns an error related to options, let's log that so we have a chance to see it and fix it.
-rw-r--r--lib/ssl/src/ssl_tls_dist_proxy.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ssl/src/ssl_tls_dist_proxy.erl b/lib/ssl/src/ssl_tls_dist_proxy.erl
index e7f7fa96a1..1f48ce9e8c 100644
--- a/lib/ssl/src/ssl_tls_dist_proxy.erl
+++ b/lib/ssl/src/ssl_tls_dist_proxy.erl
@@ -193,6 +193,11 @@ setup_proxy(Ip, Port, Parent) ->
Err ->
Parent ! {self(), Err}
end;
+ {error, {options, _}} = Err ->
+ %% Bad options: that's probably our fault. Let's log that.
+ error_logger:error_msg("Cannot open TLS distribution connection: ~s~n",
+ [ssl:format_error(Err)]),
+ Parent ! {self(), Err};
Err ->
Parent ! {self(), Err}
end.