[telepathy-salut/master] Raise NotImplemented on unknown address types/access-control mechs
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Mar 27 07:24:46 PDT 2009
---
src/salut-file-transfer-channel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/salut-file-transfer-channel.c b/src/salut-file-transfer-channel.c
index 9d22564..a84b50f 100644
--- a/src/salut-file-transfer-channel.c
+++ b/src/salut-file-transfer-channel.c
@@ -1156,7 +1156,7 @@ check_address_and_access_control (SalutFileTransferChannel *self,
GUINT_TO_POINTER (address_type));
if (access_arr == NULL)
{
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
"AddressType %u is not implemented", address_type);
return FALSE;
}
@@ -1171,7 +1171,7 @@ check_address_and_access_control (SalutFileTransferChannel *self,
return TRUE;
}
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
"AccesControl %u is not implemented with AddressType %u",
access_control, address_type);
--
1.5.6.5
More information about the telepathy-commits
mailing list