From b0919fe6aab968756a0a7feb072fc49764862709 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 16 Jan 2012 14:34:55 +0100 Subject: empathy_account_get_error_message: get the reason before displaying it --- libempathy/empathy-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libempathy/empathy-utils.c') diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index cf64bc77d..4b5738b7a 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -410,11 +410,11 @@ empathy_account_get_error_message (TpAccount *account, if (message != NULL) return message; + tp_account_get_connection_status (account, &reason); + DEBUG ("Don't understand error '%s'; fallback to the status reason (%u)", dbus_error, reason); - tp_account_get_connection_status (account, &reason); - return empathy_status_reason_get_default_message (reason); } -- cgit v1.2.3