summaryrefslogtreecommitdiff
path: root/telepathy-glib/connection.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-09-13 12:40:53 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-09-13 13:15:54 +0100
commitd08ba89ff856573f3eae62c506854d6728925a81 (patch)
tree476df442c7ea05dd044080fc8143d61009325d95 /telepathy-glib/connection.c
parent1de349019cd39b643bb7e04acbbe51780ffb3b57 (diff)
downloadtelepathy-glib-d08ba89ff856573f3eae62c506854d6728925a81.tar.gz
Connection: provide debug-message when CM crashes
Previously, when a TpConnection was invalidated due to a crash, tp_connection_get_detailed_error() would return DBUS_ERROR_NO_REPLY (which is plausible) but would not include any details in the dict o' details. This is a shame, because the invalidation GError in this case contains a message like “Name owner lost (service crashed?)”. So, let's pass the message on. Related-to: <https://bugs.freedesktop.org/show_bug.cgi?id=40129> Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/connection.c')
-rw-r--r--telepathy-glib/connection.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index a15e9b6b0..faf86cdd0 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -3069,16 +3069,16 @@ tp_connection_get_detailed_error (TpConnection *self,
else
{
/* no detailed error, but we *have* been invalidated - guess one based
- * on the invalidation reason, and don't give any details */
+ * on the invalidation reason */
if (details != NULL)
{
if (self->priv->connection_error_details == NULL)
- self->priv->connection_error_details = g_hash_table_new (
- g_str_hash, g_str_equal);
-
- g_assert (g_hash_table_size (self->priv->connection_error_details)
- == 0);
+ {
+ self->priv->connection_error_details = tp_asv_new (
+ "debug-message", G_TYPE_STRING, proxy->invalidated->message,
+ NULL);
+ }
*details = self->priv->connection_error_details;
}