Generates useful error message when bio fails
Error message FossilOrigin-Name: b69acf730ba2e922197696e13b5b9744fb31df64def7f04c10cdd9b994efcb29
This commit is contained in:
parent
2c4151a190
commit
3526456aa9
@ -109,6 +109,8 @@ int dtls_gnutls_connect(struct conn *conn)
|
|||||||
|
|
||||||
|
|
||||||
if (rc < 0) {
|
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",
|
cw_log(LOG_ERR, "DTLS (gnutls) Can't connect to %s: %s",
|
||||||
sock_addr2str(&conn->addr,sock_buf), gnutls_strerror(rc));
|
sock_addr2str(&conn->addr,sock_buf), gnutls_strerror(rc));
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user