[Telepathy-commits] [telepathy-gabble/master] Add error return

Pierre-Luc Beaudoin pierre-luc.beaudoin at collabora.co.uk
Sun Feb 1 05:23:57 PST 2009


---
 src/conn-location.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/conn-location.c b/src/conn-location.c
index b496adb..c30533d 100644
--- a/src/conn-location.c
+++ b/src/conn-location.c
@@ -256,8 +256,13 @@ location_set_location (GabbleSvcConnectionInterfaceLocation *iface,
 
   /* XXX: use _ignore_reply */
   if (!_gabble_connection_send (conn, msg, NULL))
-    /* XXX: return error */
-    return;
+    {
+      GError error = { TP_ERRORS, TP_ERROR_NETWORK_ERROR,
+          "Failed to send msg" };
+
+      dbus_g_method_return_error (context, &error);
+      return;
+    }
 
   dbus_g_method_return (context);
 }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list