[tracker/wip/carlosg/more-tests: 4/9] 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: 4/9] portal: Add missing GError in error path
- Date: Tue, 29 Sep 2020 14:06:12 +0000 (UTC)
commit 69816f7979167bae56f52f3be175e25d84cc913b
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]