From: Xavier Claessens Date: Tue, 11 Mar 2008 12:23:05 +0000 (+0000) Subject: Display GError's message when a call fails. X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=862aee8f30817b0f56c59134cef0c7e51d7cc168 Display GError's message when a call fails. svn path=/trunk/; revision=771 --- diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index e3348bb1..a93e2fc2 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -347,6 +347,12 @@ tp_chat_list_pending_messages_cb (TpChannel *channel, 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; @@ -429,6 +435,12 @@ tp_chat_get_properties_cb (TpProxy *proxy, 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); } @@ -446,6 +458,12 @@ tp_chat_list_properties_cb (TpProxy *proxy, 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++) {