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 --- src/empathy-status-icon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/empathy-status-icon.c') diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 33c2da031..ba1bef1a4 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -560,8 +560,11 @@ account_manager_prepared_cb (GObject *source_object, GList *list, *l; TpAccountManager *account_manager = TP_ACCOUNT_MANAGER (source_object); EmpathyStatusIcon *icon = user_data; + GError *error = NULL; - if (!tp_account_manager_prepare_finish (account_manager, result, NULL)) { + if (!tp_account_manager_prepare_finish (account_manager, result, &error)) { + DEBUG ("Failed to prepare account manager: %s", error->message); + g_error_free (error); return; } -- cgit v1.2.3