[Telepathy-commits] [telepathy-gabble/master] Tubes: better English in error messages

Alban Crequy alban.crequy at collabora.co.uk
Mon Oct 27 12:45:58 PDT 2008


---
 src/tube-stream.c   |    6 ++++--
 src/tubes-channel.c |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/tube-stream.c b/src/tube-stream.c
index 8c83003..c79ff51 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -1721,7 +1721,8 @@ check_unix_params (TpSocketAddressType address_type,
   if (access_control != TP_SOCKET_ACCESS_CONTROL_LOCALHOST)
   {
     g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
-        "Unix sockets only support localhost control access");
+        "Only the Localhost access control method is supported for Unix"
+        " sockets");
     return FALSE;
   }
 
@@ -1998,7 +1999,8 @@ gabble_tube_stream_accept_stream_tube (GabbleSvcChannelTypeStreamTube *iface,
   if (access_control != TP_SOCKET_ACCESS_CONTROL_LOCALHOST)
     {
       GError e = { TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
-          "Unix sockets only support localhost control access" };
+          "Only the Localhost access control method is supported for Unix"
+            "sockets" };
 
       dbus_g_method_return_error (context, &e);
       return;
diff --git a/src/tubes-channel.c b/src/tubes-channel.c
index c4ef2cb..cc8a941 100644
--- a/src/tubes-channel.c
+++ b/src/tubes-channel.c
@@ -1932,7 +1932,8 @@ gabble_tubes_channel_accept_stream_tube (TpSvcChannelTypeTubes *iface,
   if (access_control != TP_SOCKET_ACCESS_CONTROL_LOCALHOST)
     {
       GError e = { TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
-          "Unix sockets only support localhost control access" };
+          "Only the Localhost access control method is supported for Unix"
+            " sockets" };
 
       dbus_g_method_return_error (context, &e);
       return;
-- 
1.5.6.5




More information about the Telepathy-commits mailing list