mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 11:14:05 +02:00
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
This commit is contained in:
committed by
Matthias Clasen
parent
56c0d0f384
commit
0703dbc21f
@@ -2136,7 +2136,7 @@ g_socket_shutdown (GSocket *socket,
|
|||||||
{
|
{
|
||||||
int errsv = get_socket_errno ();
|
int errsv = get_socket_errno ();
|
||||||
g_set_error (error, G_IO_ERROR, socket_io_error_from_errno (errsv),
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user