[tracker/wip/carlosg/more-tests: 7/12] portal: Add missing GError in error path
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/more-tests: 7/12] portal: Add missing GError in error path
- Date: Wed, 30 Sep 2020 11:07:55 +0000 (UTC)
commit 71217526b5dddd885539ee9449cde1955568f620
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 ff67967c1..4faeaae0b 100644
--- a/src/portal/tracker-portal.c
+++ b/src/portal/tracker-portal.c
@@ -263,6 +263,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]