[empathy] empathy_account_get_error_message: get the reason before displaying it
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_account_get_error_message: get the reason before displaying it
- Date: Mon, 16 Jan 2012 14:14:15 +0000 (UTC)
commit b0919fe6aab968756a0a7feb072fc49764862709
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Jan 16 14:34:55 2012 +0100
empathy_account_get_error_message: get the reason before displaying it
libempathy/empathy-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index cf64bc7..4b5738b 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]