[Telepathy-commits] [telepathy-glib/master] BaseConnection: alter tp_handle_ensure's error to be in TP_ERRORS

Will Thompson will.thompson at collabora.co.uk
Thu Sep 18 04:02:46 PDT 2008


---
 telepathy-glib/base-connection.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 677436b..a5e8146 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -2802,6 +2802,10 @@ conn_requests_requestotron_validate_handle (TpBaseConnection *self,
 
           if (target_handle == 0)
             {
+              /* tp_handle_ensure can return any error in any domain; force
+               * the domain and code to be as documented for CreateChannel.
+               */
+              error->domain = TP_ERRORS;
               error->code = TP_ERROR_INVALID_HANDLE;
               dbus_g_method_return_error (context, error);
               g_error_free (error);
-- 
1.5.6.5




More information about the Telepathy-commits mailing list