diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-07-06 19:29:13 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-07-06 19:29:13 -0400 |
commit | 9d59e45961f11393093fed39cd62df56c3ba18fc (patch) | |
tree | 94843c8728d076fcb5bec22c8e7a8e4cb9b2a252 | |
parent | 22ff54a06966a47e6c6a42285e1e9c1873a40c26 (diff) | |
download | glib-9d59e45961f11393093fed39cd62df56c3ba18fc.tar.gz |
Set an error on failure
'has no owner' seems close enough, that is what we are seeing
here.
-rw-r--r-- | gio/gnetworkmonitorportal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gnetworkmonitorportal.c b/gio/gnetworkmonitorportal.c index 438fcf532..0d3aeb167 100644 --- a/gio/gnetworkmonitorportal.c +++ b/gio/gnetworkmonitorportal.c @@ -135,6 +135,10 @@ g_network_monitor_portal_initable_init (GInitable *initable, if (!name_owner) { g_object_unref (proxy); + g_set_error (error, + G_DBUS_ERROR, + G_DBUS_ERROR_NAME_HAS_NO_OWNER, + "Desktop portal not found"); return FALSE; } |