[telepathy-idle/master] Correct the error for unsupported message types

Will Thompson will.thompson at collabora.co.uk
Wed May 27 16:04:48 PDT 2009


---
 src/idle-text.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/idle-text.c b/src/idle-text.c
index 38212bd..ccafa1e 100644
--- a/src/idle-text.c
+++ b/src/idle-text.c
@@ -94,8 +94,8 @@ idle_text_encode_and_split(TpChannelTextMessageType type,
 			header = g_strdup_printf("NOTICE %s :", recipient);
 			break;
 		default:
-			IDLE_DEBUG("invalid message type %u", type);
-			g_set_error(error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, "invalid message type %u", type);
+			IDLE_DEBUG("unsupported message type %u", type);
+			g_set_error(error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED, "unsupported message type %u", type);
 			return NULL;
 	}
 
-- 
1.5.6.5



More information about the telepathy-commits mailing list