]> git.0d.be Git - empathy.git/commitdiff
empathy_account_get_error_message: get the reason before displaying it
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 16 Jan 2012 13:34:55 +0000 (14:34 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 16 Jan 2012 13:34:55 +0000 (14:34 +0100)
libempathy/empathy-utils.c

index cf64bc77d41560cb735412b7676c9af04b6dccac..4b5738b7a2dd45d8faaf4cf8403d90dc585e0ea3 100644 (file)
@@ -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);
 }