summaryrefslogtreecommitdiff
path: root/tests/lib/simple-conn.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-02-13 15:26:30 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-02-13 15:26:30 +0000
commitfa2dc33120b76637911a9e10aadecfcd976bf3e5 (patch)
treec70e815f8f6b155611ad3772d1720fa61986df6d /tests/lib/simple-conn.c
parent679ca387a6b7856701b9ba2cce8d640dc8e231f9 (diff)
SimpleConnection: actually comply with telepathy spec >= 0.17.18
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).
Diffstat (limited to 'tests/lib/simple-conn.c')
-rw-r--r--tests/lib/simple-conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/simple-conn.c b/tests/lib/simple-conn.c
index 74eea1a75..a45951b7b 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;
}