kdbus: set error when dbuspolicy1_init fails 66/106666/1
authorKonrad Lipinski <konrad.l@samsung.com>
Thu, 22 Dec 2016 10:26:01 +0000 (11:26 +0100)
committerKonrad Lipinski <konrad.l@samsung.com>
Thu, 22 Dec 2016 10:26:32 +0000 (11:26 +0100)
Change-Id: I99466bde6f7cecd62d6f911cf39bf9204b81d6de

gio/gkdbus.c

index 8a2d2c7..03d1f54 100755 (executable)
@@ -568,10 +568,10 @@ _g_kdbus_open (GKDBusWorker  *worker,
   worker->dbuspolicy = dbuspolicy1_init (address);
   if (worker->dbuspolicy == NULL)
     {
-      g_warning ("kdbus: cannot load dbus policy for kdbus transport");
       close (worker->fd);
       worker->fd = -1;
 
+      g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, _("Cannot load dbus policy for kdbus transport"));
       return FALSE;
     }
 #endif