summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-11 17:57:51 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-26 18:20:57 +0000
commit5e82fc94bed030ecb62dfe2bf823edc0029fb9d7 (patch)
tree9a4b243e7b2d744db3e47254a040cc829b9d8309
parent6edb76facac9a902f8ecf6780aa5c06e73d567b6 (diff)
_tp_base_client_remove_request: use g_dbus_method_invocation_return_error_literal
-rw-r--r--telepathy-glib/base-client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/telepathy-glib/base-client.c b/telepathy-glib/base-client.c
index 6637a32a9..cd725fc93 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;
}