[tracker/wip/carlosg/more-tests: 7/12] portal: Add missing GError in error path




commit 2187345954dd1dcf251498bd7d60b383757ac150
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Sep 28 17:34:14 2020 +0200

    portal: Add missing GError in error path
    
    Otherwise we try to error out, but never really finish the DBus invocation.

 src/portal/tracker-portal.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/portal/tracker-portal.c b/src/portal/tracker-portal.c
index 10165a0af..a528f513c 100644
--- a/src/portal/tracker-portal.c
+++ b/src/portal/tracker-portal.c
@@ -256,6 +256,11 @@ load_client_configuration (TrackerPortal          *portal,
 
        if (!graphs) {
                g_debug ("Service '%s' not found in Tracker policy", service_uri);
+               g_set_error (error,
+                            G_IO_ERROR,
+                            G_IO_ERROR_NOT_FOUND,
+                            "Service '%s' not found in Tracker policy",
+                            service_uri);
                return NULL;
        }
 


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