[gnome-software] gs-utils: Handle AsIconErrors



commit 4e45b093d9fa3c7cd436b382257934e9565a3b56
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 9279caca..c7ded067 100644
--- a/lib/gs-utils.c
+++ b/lib/gs-utils.c
@@ -989,6 +989,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]