[telepathy-gabble/master] Raise NotImplemented on unknown address types/access-control mechs

Will Thompson will.thompson at collabora.co.uk
Tue Mar 24 16:04:23 PDT 2009


---
 src/file-transfer-channel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/file-transfer-channel.c b/src/file-transfer-channel.c
index da6d405..abcbf04 100644
--- a/src/file-transfer-channel.c
+++ b/src/file-transfer-channel.c
@@ -948,7 +948,7 @@ check_address_and_access_control (GabbleFileTransferChannel *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;
     }
@@ -963,7 +963,7 @@ check_address_and_access_control (GabbleFileTransferChannel *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