diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-08-05 12:49:38 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-08-05 12:53:53 +0200 |
commit | a7dd01e283f79f4a6e739a3e074dfcf23f39fe85 (patch) | |
tree | d960eaf2b964a9629e9d2410b07822823a2931ff /telepathy-glib/account-manager.c | |
parent | 3c45ff1964d34ebd48cb0ca46d0b4ea06767f585 (diff) | |
download | telepathy-glib-a7dd01e283f79f4a6e739a3e074dfcf23f39fe85.tar.gz |
Print warning if tp_account_manager_dup() fails
Diffstat (limited to 'telepathy-glib/account-manager.c')
-rw-r--r-- | telepathy-glib/account-manager.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/telepathy-glib/account-manager.c b/telepathy-glib/account-manager.c index 55fdfa7a3..d532e6627 100644 --- a/telepathy-glib/account-manager.c +++ b/telepathy-glib/account-manager.c @@ -730,14 +730,18 @@ TpAccountManager * tp_account_manager_dup (void) { TpDBusDaemon *dbus; + GError *error = NULL; if (starter_account_manager_proxy != NULL) return g_object_ref (starter_account_manager_proxy); - dbus = tp_dbus_daemon_dup (NULL); - + dbus = tp_dbus_daemon_dup (&error); if (dbus == NULL) - return NULL; + { + WARNING ("Error getting default TpDBusDaemon: %s", error->message); + g_clear_error (&error); + return NULL; + } starter_account_manager_proxy = tp_account_manager_new (dbus); g_assert (starter_account_manager_proxy != NULL); |