Call tls_error when tls_connect_socket fails

weechat-hashes
Curtis McEnroe 2018-09-15 23:19:01 -04:00
parent cca4b3fa10
commit 6aecd7a712
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 1 additions and 1 deletions

2
irc.c
View File

@ -86,7 +86,7 @@ int ircConnect(
if (error) err(EX_IOERR, "fcntl");
error = tls_connect_socket(client, sock, host);
if (error) err(EX_PROTOCOL, "tls_connect");
if (error) errx(EX_PROTOCOL, "tls_connect: %s", tls_error(client));
if (webPass) webirc(webPass);
if (pass) ircFmt("PASS :%s\r\n", pass);