[Pkg-telepathy-commits] [telepathy-glib-1] 08/212: _tp_base_client_remove_request: use g_dbus_method_invocation_return_error_literal
Simon McVittie
smcv at debian.org
Wed May 14 12:08:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository telepathy-glib-1.
commit 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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-glib-1.git
More information about the Pkg-telepathy-commits
mailing list