]> git.0d.be Git - empathy.git/commitdiff
Display GError's message when a call fails.
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Mar 2008 12:23:05 +0000 (12:23 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Mar 2008 12:23:05 +0000 (12:23 +0000)
svn path=/trunk/; revision=771

libempathy/empathy-tp-chat.c

index e3348bb112e7f5327a1f95a1efcc97f9912b2cd7..a93e2fc2ef94c33e80077b46a457dc5cbec2a4fb 100644 (file)
@@ -347,6 +347,12 @@ tp_chat_list_pending_messages_cb (TpChannel       *channel,
 
        priv->had_pending_messages = TRUE;
 
 
        priv->had_pending_messages = TRUE;
 
+       if (error) {
+               empathy_debug (DEBUG_DOMAIN, "Error listing pending messages: %s",
+                              error->message);
+               return;
+       }
+
        for (i = 0; i < messages_list->len; i++) {
                EmpathyMessage *message;
                GValueArray    *message_struct;
        for (i = 0; i < messages_list->len; i++) {
                EmpathyMessage *message;
                GValueArray    *message_struct;
@@ -429,6 +435,12 @@ tp_chat_get_properties_cb (TpProxy         *proxy,
                           gpointer         user_data,
                           GObject         *chat)
 {
                           gpointer         user_data,
                           GObject         *chat)
 {
+       if (error) {
+               empathy_debug (DEBUG_DOMAIN, "Error getting properties: %s",
+                              error->message);
+               return;
+       }
+
        empathy_debug (DEBUG_DOMAIN, "Got value of properties");
        tp_chat_properties_changed_cb (proxy, properties, user_data, chat);
 }
        empathy_debug (DEBUG_DOMAIN, "Got value of properties");
        tp_chat_properties_changed_cb (proxy, properties, user_data, chat);
 }
@@ -446,6 +458,12 @@ tp_chat_list_properties_cb (TpProxy         *proxy,
 
        priv->had_properties_list = TRUE;
 
 
        priv->had_properties_list = TRUE;
 
+       if (error) {
+               empathy_debug (DEBUG_DOMAIN, "Error listing properties: %s",
+                              error->message);
+               return;
+       }
+
        ids = g_array_sized_new (FALSE, FALSE, sizeof (guint), properties->len);
        priv->properties = g_ptr_array_sized_new (properties->len);
        for (i = 0; i < properties->len; i++) {
        ids = g_array_sized_new (FALSE, FALSE, sizeof (guint), properties->len);
        priv->properties = g_ptr_array_sized_new (properties->len);
        for (i = 0; i < properties->len; i++) {