[gnome-software] trivial: Fix up some debugging warnings to be more useful



commit 0a07a1ca07c9e2e96f24af22ab4246060dbf8ca2
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jul 13 10:18:07 2016 +0100

    trivial: Fix up some debugging warnings to be more useful

 src/gs-shell-overview.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index 6b35473..f0a22dc 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -206,12 +206,16 @@ gs_shell_overview_get_category_apps_cb (GObject *source_object,
        /* get popular apps */
        list = gs_plugin_loader_get_category_apps_finish (plugin_loader, res, &error);
        if (list == NULL) {
-               if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-                       g_warning ("failed to get recommended applications: %s", error->message);
+               if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+                       goto out;
+               g_warning ("failed to get category %s featured applications: %s",
+                          gs_category_get_id (load_data->category),
+                          error->message);
                goto out;
        } else if (gs_app_list_length (list) < N_TILES) {
-               g_warning ("hiding recommended applications: "
+               g_warning ("hiding category %s featured applications: "
                           "found only %d to show, need at least %d",
+                          gs_category_get_id (load_data->category),
                           gs_app_list_length (list), N_TILES);
                goto out;
        }


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