Generates useful error message when bio fails

Error message

FossilOrigin-Name: b69acf730ba2e922197696e13b5b9744fb31df64def7f04c10cdd9b994efcb29
bsdmakefiles
root 3 years ago
parent 2c4151a190
commit 3526456aa9
  1. 2
      src/cw/dtls_gnutls_connect.c

@ -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;

Loading…
Cancel
Save