summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2015-02-27 10:22:22 +0100
committerOndrej Holy <oholy@redhat.com>2015-09-07 13:38:43 +0200
commitd663c85f0356d7800638c5eaa1a49e6c26bdfa33 (patch)
tree1e9cdbddc3dbb29b8383e0c01b977edbc1aea51d
parent7bcfc873fd54e565836228ab030782885e133ebb (diff)
downloadgvfs-d663c85f0356d7800638c5eaa1a49e6c26bdfa33.tar.gz
afp: Change g_error to g_warning for read errors
Use g_warning rather than g_error when a read error occurs to prevent spurious crash reports since there are many different ways for a read from the network to fail. [Cherry-picked from gnome-3-14/14369db2a8fc Commit message written by Ross Lagerwall.] https://bugzilla.gnome.org/show_bug.cgi?id=710490
-rw-r--r--daemon/gvfsafpconnection.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index c8ccad72..abe14226 100644
--- a/daemon/gvfsafpconnection.c
+++ b/daemon/gvfsafpconnection.c
@@ -1078,12 +1078,12 @@ read_data_cb (GObject *object, GAsyncResult *res, gpointer user_data)
g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CONNECTION_CLOSED))
{
g_message (_("Host closed connection"));
- exit(0);
}
else
{
- g_error ("FAIL!!! \"%s\"\n", err->message);
+ g_warning ("FAIL!!! \"%s\"\n", err->message);
}
+ exit (0);
}
dispatch_reply (afp_connection);
@@ -1120,12 +1120,12 @@ read_dsi_header_cb (GObject *object, GAsyncResult *res, gpointer user_data)
g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CONNECTION_CLOSED))
{
g_message (_("Host closed connection"));
- exit(0);
}
else
{
- g_error ("FAIL!!! \"%s\"\n", err->message);
+ g_warning ("FAIL!!! \"%s\"\n", err->message);
}
+ exit (0);
}
dsi_header = &priv->read_dsi_header;