Generates useful error message when bio fails

Error message

FossilOrigin-Name: b69acf730ba2e922197696e13b5b9744fb31df64def7f04c10cdd9b994efcb29
This commit is contained in:
root 2020-03-08 13:37:12 +00:00
parent 2c4151a190
commit 3526456aa9
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ int dtls_gnutls_connect(struct conn *conn)
if (rc < 0) {
if (errno)
cw_log(LOG_ERR, "DTLS (gnutls bio): %s",strerror(errno));
cw_log(LOG_ERR, "DTLS (gnutls) Can't connect to %s: %s",
sock_addr2str(&conn->addr,sock_buf), gnutls_strerror(rc));
return 0;