aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-utils.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-01-16 21:34:55 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-01-16 21:34:55 +0800
commitb0919fe6aab968756a0a7feb072fc49764862709 (patch)
tree3c6ef340fb73067f567da992ba02437343fef5ac /libempathy/empathy-utils.c
parentd59b7870dbd7afd1e63f94d953a35306d7b9909c (diff)
downloadgsoc2013-empathy-b0919fe6aab968756a0a7feb072fc49764862709.tar
gsoc2013-empathy-b0919fe6aab968756a0a7feb072fc49764862709.tar.gz
gsoc2013-empathy-b0919fe6aab968756a0a7feb072fc49764862709.tar.bz2
gsoc2013-empathy-b0919fe6aab968756a0a7feb072fc49764862709.tar.lz
gsoc2013-empathy-b0919fe6aab968756a0a7feb072fc49764862709.tar.xz
gsoc2013-empathy-b0919fe6aab968756a0a7feb072fc49764862709.tar.zst
gsoc2013-empathy-b0919fe6aab968756a0a7feb072fc49764862709.zip
empathy_account_get_error_message: get the reason before displaying it
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r--libempathy/empathy-utils.c4
1 files changed, 2 insertions, 2 deletions
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);
}