diff options
author | Burt Silverman <burtms@gmail.com> | 2011-08-26 18:39:01 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-08-30 13:11:50 +0300 |
commit | 1e36c9b468af0da4bc8fa213d1438f534957692d (patch) | |
tree | c7b18487b352a18e093eccb768f2b2a36a2f0310 /src/main.c | |
parent | 04a4e9a650deca626b0bbe4a0ded4d86a35d6ddc (diff) |
Print an error message if g_dbus_setup_bus fails.
That is standard processing when dbus_error_is_set() returns true, according to
dbus/dbus/dbus-errors.c.
In this case of g_dbus_setup_bus(), it provides extra help for determing the
specific cause of the error.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -311,6 +311,7 @@ static int connect_dbus(void) conn = g_dbus_setup_bus(DBUS_BUS_SYSTEM, BLUEZ_NAME, &err); if (!conn) { if (dbus_error_is_set(&err)) { + g_printerr("D-Bus setup failed: %s\n", err.message); dbus_error_free(&err); return -EIO; } |