[glib-networking] gnutls: fix a couple error messages



commit 6ffd98a4e20fa017b22037e27d7dea1be12a4911
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Aug 19 14:16:53 2019 -0500

    gnutls: fix a couple error messages
    
    (unknown error code) isn't the greatest possible error message.

 tls/gnutls/gtlsconnection-gnutls.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 4e883a7..2ea627b 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -361,7 +361,7 @@ end_gnutls_io (GTlsConnectionGnutls  *gnutls,
         {
           g_clear_error (&my_error);
           g_set_error (error, G_TLS_ERROR, G_TLS_ERROR_NOT_TLS,
-                       _("Peer failed to perform TLS handshake: %s"), gnutls_strerror (status));
+                       _("Peer failed to perform TLS handshake: %s"), gnutls_strerror (ret));
           return G_TLS_CONNECTION_BASE_ERROR;
         }
     }
@@ -385,7 +385,7 @@ end_gnutls_io (GTlsConnectionGnutls  *gnutls,
         {
           g_clear_error (&my_error);
           g_set_error (error, G_TLS_ERROR, G_TLS_ERROR_NOT_TLS,
-                       _("Peer failed to perform TLS handshake: %s"), gnutls_strerror (status));
+                       _("Peer failed to perform TLS handshake: %s"), gnutls_strerror (ret));
           return G_TLS_CONNECTION_BASE_ERROR;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]