]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
When launching dbus-daemon be more verbose in error case.
authorRalf Habacker <ralf.habacker@freenet.de>
Tue, 28 Sep 2010 06:17:38 +0000 (08:17 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 28 Sep 2010 06:20:10 +0000 (08:20 +0200)
dbus/dbus-sysdeps-win.c

index 821bc7befe1f534fa1e2d861223827e10dc1baa9..3c8da94a47c2e36c303f4cce30894adfcb99208a 100644 (file)
@@ -2846,10 +2846,14 @@ _dbus_get_autolaunch_address (const char *scope, DBusString *address,
       CloseHandle (pi.hThread);
       CloseHandle (pi.hProcess);
       retval = _dbus_get_autolaunch_shm( address, &shm_address );
+      if (retval == FALSE)
+        dbus_set_error_const (error, DBUS_ERROR_FAILED, "Failed to get autolaunch address from launched dbus-daemon");
+    }
+  else
+    {
+      dbus_set_error_const (error, DBUS_ERROR_FAILED, "Failed to launch dbus-daemon");
+      retval == FALSE;
     }
-  
-  if (retval == FALSE)
-    dbus_set_error_const (error, DBUS_ERROR_FAILED, "Failed to launch dbus-daemon");
 
 out:
   if (retval)