From 455087faaea688579584375308a696e602c1e8d2 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 16 Aug 2006 17:05:54 +0000 Subject: Use gnutls_strerror() for clearer error message. --- lib/gtls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/gtls.c b/lib/gtls.c index dc33dc600..b202adfd4 100644 --- a/lib/gtls.c +++ b/lib/gtls.c @@ -168,8 +168,7 @@ static CURLcode handshake(struct connectdata *conn, } while(1); if (rc < 0) { - failf(data, "gnutls_handshake() failed: %d", rc); - /* gnutls_perror(ret); */ + failf(data, "gnutls_handshake() failed: %s", gnutls_strerror(rc)); return CURLE_SSL_CONNECT_ERROR; } -- cgit v1.2.3