[gvfs] afp: Change g_error to g_warning for read errors
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afp: Change g_error to g_warning for read errors
- Date: Sat, 29 Aug 2015 20:49:05 +0000 (UTC)
commit ae1183fe3d37bf2d391c5c0b8e00d1b59a824b05
Author: Ondrej Holy <oholy redhat com>
Date: Fri Feb 27 10:22:22 2015 +0100
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
daemon/gvfsafpconnection.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index f5d4bd4..806af01 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]