[gnome-control-center] info: Add error output to warning



commit e556a38af3077501eb8dd9a2547b28dfbf3a2c0d
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 15 15:59:32 2012 +0200

    info: Add error output to warning

 panels/info/cc-info-panel.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index f213a07..41e8df7 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1963,10 +1963,12 @@ cc_info_panel_init (CcInfoPanel *self)
                                                         "/org/freedesktop/PackageKit",
                                                         "org.freedesktop.PackageKit",
                                                         NULL,
-                                                        NULL);
+                                                        &error);
   if (self->priv->pk_proxy == NULL)
     {
-      g_warning ("Unable to get PackageKit proxy object");
+      g_warning ("Unable to get PackageKit proxy object: %s", error->message);
+      g_error_free (error);
+      error = NULL;
       self->priv->updates_state = PK_NOT_AVAILABLE;
     }
   else



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