display connection path when SetLocation fails
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Sun, 2 May 2010 19:27:57 +0000 (21:27 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Sun, 2 May 2010 19:27:57 +0000 (21:27 +0200)
src/position-publisher.c

index 0029c04..3fdfd1f 100644 (file)
@@ -84,7 +84,8 @@ set_location_cb (TpConnection *conn,
 
   if (error != NULL)
     {
-      g_print ("SetLocation failed: %s\n", error->message);
+      g_print ("SetLocation failed (%s): %s\n", tp_proxy_get_object_path (conn),
+          error->message);
 
       if (error->code == TP_ERROR_NOT_IMPLEMENTED)
         {