[gnome-software] trivial: Add some more details in the flatak GError messages



commit aca0f57fafba9b3d8e9b5e89c2104fdaa71773bb
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 24 19:10:44 2017 +0000

    trivial: Add some more details in the flatak GError messages

 src/plugins/gs-flatpak.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 5b57758..e373f8f 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -905,13 +905,16 @@ gs_flatpak_app_install_source (GsFlatpak *self, GsApp *app,
                                                 cancellable,
                                                 error)) {
                gs_plugin_flatpak_error_convert (error);
+               g_prefix_error (error, "cannot modify remote: ");
                gs_app_set_state_recover (app);
                return FALSE;
        }
 
        /* refresh the AppStream data manually */
-       if (!gs_flatpak_add_apps_from_xremote (self, xremote, cancellable, error))
+       if (!gs_flatpak_add_apps_from_xremote (self, xremote, cancellable, error)) {
+               g_prefix_error (error, "cannot refresh remote AppStream: ");
                return FALSE;
+       }
 
        /* success */
        gs_app_set_state (app, AS_APP_STATE_INSTALLED);


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