[Telepathy-commits] [telepathy-glib/master] SimpleConnection: actually comply with telepathy spec >= 0.17.18

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Feb 13 07:26:30 PST 2009


The right error for invalid identifiers is now InvalidHandle. This
omission indirectly caused fd.o #20096 (we weren't testing TpContact
against a fully up-to-date CM implementation).
---
 tests/lib/simple-conn.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/lib/simple-conn.c b/tests/lib/simple-conn.c
index 74eea1a..a45951b 100644
--- a/tests/lib/simple-conn.c
+++ b/tests/lib/simple-conn.c
@@ -107,14 +107,14 @@ simple_normalize_contact (TpHandleRepoIface *repo,
 {
   if (id[0] == '\0')
     {
-      g_set_error (error, TP_ERRORS, TP_ERROR_NOT_AVAILABLE,
+      g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_HANDLE,
           "ID must not be empty");
       return NULL;
     }
 
   if (strchr (id, ' ') != NULL)
     {
-      g_set_error (error, TP_ERRORS, TP_ERROR_NOT_AVAILABLE,
+      g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_HANDLE,
           "ID must not contain spaces");
       return NULL;
     }
-- 
1.5.6.5



More information about the telepathy-commits mailing list