[glib/glib-2-28] gsocket: Fix the error message for a failed g_socket_shutdown



commit 26bf8c67ba6645019371315e24772db40d9197d7
Author: Neil Roberts <neil linux intel com>
Date:   Sat May 28 15:06:45 2011 +0100

    gsocket: Fix the error message for a failed g_socket_shutdown
    
    The GError message for g_socket_shutdown was reporting that it was
    "Unable to create socket" which is presumably a cut-and-paste bug.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=651327

 gio/gsocket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 01792a7..694d9f8 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -2132,7 +2132,7 @@ g_socket_shutdown (GSocket   *socket,
     {
       int errsv = get_socket_errno ();
       g_set_error (error, G_IO_ERROR, socket_io_error_from_errno (errsv),
-		   _("Unable to create socket: %s"), socket_strerror (errsv));
+		   _("Unable to shutdown socket: %s"), socket_strerror (errsv));
       return FALSE;
     }
 



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