diff options
author | Ingela Anderton Andin <[email protected]> | 2018-12-10 16:50:46 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2019-02-04 10:48:17 +0100 |
commit | 949c725abcc649e508d971cbc82f5278e050db2c (patch) | |
tree | 27eb940aa5dd4a94cd49c94b107f71132ea62cae /lib/ssl/src/ssl.erl | |
parent | 29f09d4ef93b94d92f57045712e2c395902e0893 (diff) | |
download | otp-949c725abcc649e508d971cbc82f5278e050db2c.tar.gz otp-949c725abcc649e508d971cbc82f5278e050db2c.tar.bz2 otp-949c725abcc649e508d971cbc82f5278e050db2c.zip |
ssl: Enhance error handling
Diffstat (limited to 'lib/ssl/src/ssl.erl')
-rw-r--r-- | lib/ssl/src/ssl.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl index 29129d4b6c..34261e5d6b 100644 --- a/lib/ssl/src/ssl.erl +++ b/lib/ssl/src/ssl.erl @@ -783,8 +783,8 @@ format_error(Reason) when is_list(Reason) -> Reason; format_error(closed) -> "TLS connection is closed"; -format_error({tls_alert, Description}) -> - "TLS Alert: " ++ Description; +format_error({tls_alert, {_, Description}}) -> + Description; format_error({options,{FileType, File, Reason}}) when FileType == cacertfile; FileType == certfile; FileType == keyfile; |