[Telepathy-commits] [telepathy-glib/master] conn_requests_requestotron_validate_handle: force error domain as well as code
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu Oct 9 06:06:16 PDT 2008
If the error emitted by tp_handle_is_valid isn't InvalidHandle, it's
anyone's guess what domain it's in too, so we should either force neither
or both. I chose both.
---
telepathy-glib/base-connection.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 863806e..b640f2b 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -2971,6 +2971,7 @@ conn_requests_requestotron_validate_handle (TpBaseConnection *self,
/* Check the supplied TargetHandle is valid */
if (!tp_handle_is_valid (handles, target_handle, &error))
{
+ 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