[gvfs] afc: Better error messages for AFC



commit 7a3f8b64deaaa99100d2e5a200baa5c1b09fef42
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 25 16:09:06 2011 +0100

    afc: Better error messages for AFC
    
    https://bugzilla.gnome.org/show_bug.cgi?id=639373

 daemon/gvfsbackendafc.c |   22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index 1f2faf7..d49ea6e 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -247,13 +247,10 @@ g_vfs_backend_inst_check (instproxy_error_t cond, GVfsJob *job)
       return 0;
     }
 
-  switch (cond)
-    {
-    default:
-      g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_FAILED,
-                        _("Unhandled Inst proxy error (%d)"), cond);
-      break;
-    }
+  g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_FAILED,
+                    _("Listing applications installed on device failed"));
+
+  g_message ("Instproxy not available (err = %d)", cond);
 
   return 1;
 }
@@ -266,13 +263,10 @@ g_vfs_backend_sbs_check (sbservices_error_t cond, GVfsJob *job)
       return 0;
     }
 
-  switch (cond)
-    {
-    default:
-      g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_FAILED,
-                        _("Unhandled SBServices proxy error (%d)"), cond);
-      break;
-    }
+  g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_FAILED,
+                    _("Accessing application icons on device failed"));
+
+  g_message ("SBServices not available (err = %d)", cond);
 
   return 1;
 }



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