diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2008-01-31 15:24:19 +0000 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2008-01-31 15:24:19 +0000 |
commit | 23b0f47e195f27c3c1927781bc80b06a82c435cc (patch) | |
tree | 72c8d22efb80e94f41cd27b6696b5526609dd986 | |
parent | 756b70f013618219169a40374196a1d817c72f2f (diff) | |
download | telepathy-salut-23b0f47e195f27c3c1927781bc80b06a82c435cc.tar.gz |
salut-self: convert error code to TP_ERROR_NETWORK_ERROR when announce_activity() failed
20080131152419-7fe3f-a5344bcd08499796f6d4b6a30fcfcc2ee2cc32f4.gz
-rw-r--r-- | src/salut-self.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/salut-self.c b/src/salut-self.c index 3a2f003a..7ed5642f 100644 --- a/src/salut-self.c +++ b/src/salut-self.c @@ -1065,9 +1065,14 @@ _set_olpc_activities_add (gpointer key, gpointer value, gpointer user_data) if (!activity_is_announced (activity)) { - if (!announce_activity (data->self, activity, data->error)) + GError *e; + + if (!announce_activity (data->self, activity, &e)) { - DEBUG ("can't announce activity"); + DEBUG ("can't announce activity: %s", e->message); + g_set_error (data->error, TP_ERRORS, TP_ERROR_NETWORK_ERROR, + e->message); + g_error_free (e); g_hash_table_remove (data->olpc_activities, key); return; } |