From d5f2776bacfe750f02782cef348e984ed68916af Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 30 Oct 2009 10:10:26 +0000 Subject: all: log error messages if preparing the account manager fails Signed-off-by: Jonny Lamb --- libempathy/empathy-account-settings.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'libempathy/empathy-account-settings.c') diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index 91f0b1065..f33e43799 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -415,9 +415,14 @@ empathy_account_settings_account_ready_cb (GObject *source_object, { EmpathyAccountSettings *settings = EMPATHY_ACCOUNT_SETTINGS (user_data); TpAccount *account = TP_ACCOUNT (source_object); + GError *error = NULL; - if (!tp_account_prepare_finish (account, result, NULL)) - return; + if (!tp_account_prepare_finish (account, result, &error)) + { + DEBUG ("Failed to prepare account: %s", error->message); + g_error_free (error); + return; + } empathy_account_settings_check_readyness (settings); } @@ -1168,9 +1173,14 @@ empathy_account_settings_manager_ready_cb (GObject *source_object, EmpathyAccountSettings *settings = EMPATHY_ACCOUNT_SETTINGS (user_data); EmpathyAccountSettingsPriv *priv = GET_PRIV (settings); TpAccountManager *account_manager = TP_ACCOUNT_MANAGER (source_object); + GError *error = NULL; - if (!tp_account_manager_prepare_finish (account_manager, result, NULL)) - return; + if (!tp_account_manager_prepare_finish (account_manager, result, &error)) + { + DEBUG ("Failed to prepare account manager: %s", error->message); + g_error_free (error); + return; + } g_assert (priv->apply_result != NULL && priv->account == NULL); empathy_account_settings_do_create_account (settings); -- cgit v1.2.3