[gnome-software/gnome-3-34] gs-utils: Handle AsIconErrors



commit 927dfa499d4d9b4e896245e06f95d206c0d690bb
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Jan 17 15:49:12 2020 +1300

    gs-utils: Handle AsIconErrors
    
    Currently you get an warning like:
    02:44:06:0521 Gs  can't reliably fixup error from domain as-icon-error-quark

 lib/gs-utils.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/lib/gs-utils.c b/lib/gs-utils.c
index 8cc0c7b0..1e0b4526 100644
--- a/lib/gs-utils.c
+++ b/lib/gs-utils.c
@@ -954,6 +954,13 @@ gs_utils_error_convert_appstream (GError **perror)
                        error->code = GS_PLUGIN_ERROR_FAILED;
                        break;
                }
+       } else if (error->domain == AS_ICON_ERROR) {
+               switch (error->code) {
+               case AS_ICON_ERROR_FAILED:
+               default:
+                       error->code = GS_PLUGIN_ERROR_FAILED;
+                       break;
+               }
        } else if (error->domain == G_FILE_ERROR) {
                switch (error->code) {
                case G_FILE_ERROR_EXIST:


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