diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-03-11 20:23:05 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-03-11 20:23:05 +0800 |
commit | 862aee8f30817b0f56c59134cef0c7e51d7cc168 (patch) | |
tree | ab2f4e5c16b3aefaef032e31efc9372730a19e9f /libempathy | |
parent | d8d508575d486e9527d7d234353cd4399c6a31fb (diff) | |
download | gsoc2013-empathy-862aee8f30817b0f56c59134cef0c7e51d7cc168.tar gsoc2013-empathy-862aee8f30817b0f56c59134cef0c7e51d7cc168.tar.gz gsoc2013-empathy-862aee8f30817b0f56c59134cef0c7e51d7cc168.tar.bz2 gsoc2013-empathy-862aee8f30817b0f56c59134cef0c7e51d7cc168.tar.lz gsoc2013-empathy-862aee8f30817b0f56c59134cef0c7e51d7cc168.tar.xz gsoc2013-empathy-862aee8f30817b0f56c59134cef0c7e51d7cc168.tar.zst gsoc2013-empathy-862aee8f30817b0f56c59134cef0c7e51d7cc168.zip |
Display GError's message when a call fails.
svn path=/trunk/; revision=771
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index e3348bb11..a93e2fc2e 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++) { |