[next] telepathy-glib: _tp_base_client_remove_request: use g_dbus_method_invocation_return_error_literal

Simon McVittie smcv at kemper.freedesktop.org
Thu Mar 27 08:42:04 PDT 2014


Module: telepathy-glib
Branch: next
Commit: 5e82fc94bed030ecb62dfe2bf823edc0029fb9d7
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=5e82fc94bed030ecb62dfe2bf823edc0029fb9d7

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue Mar 11 17:57:51 2014 +0000

_tp_base_client_remove_request: use g_dbus_method_invocation_return_error_literal

---

 telepathy-glib/base-client.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/telepathy-glib/base-client.c b/telepathy-glib/base-client.c
index 6637a32..cd725fc 100644
--- a/telepathy-glib/base-client.c
+++ b/telepathy-glib/base-client.c
@@ -2384,10 +2384,8 @@ _tp_base_client_remove_request (TpSvcClientInterfaceRequests *iface,
   request = find_request_by_path (self, path);
   if (request == NULL)
     {
-      GError err = { TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
-          "Uknown ChannelRequest" };
-
-      dbus_g_method_return_error (context, &err);
+      g_dbus_method_invocation_return_error_literal (context,
+          TP_ERROR, TP_ERROR_INVALID_ARGUMENT, "Unknown ChannelRequest");
       return;
     }
 



More information about the telepathy-commits mailing list