summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-10-28 14:49:14 -0700
committerRyan Lortie <desrt@desrt.ca>2013-10-28 18:11:46 -0700
commitabb9a746f4cc2c67a1dd96fa35e8d20bebe81c4f (patch)
treef2102fd9dc241c1ef78240471fb8c260ece19af4
parente275b8bc6c48aa7c894cb4f53bd1ee95850eb801 (diff)
downloadglib-abb9a746f4cc2c67a1dd96fa35e8d20bebe81c4f.tar.gz
exporter: give error on Describe of missing action
If someone calls org.gtk.Actions.Describe on a non-existent action then return an exception instead of a trivial description (disabled, no state, etc.). https://bugzilla.gnome.org/show_bug.cgi?id=687185
-rw-r--r--gio/gactiongroupexporter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gactiongroupexporter.c b/gio/gactiongroupexporter.c
index 2e1e8f4b9..33824b7ce 100644
--- a/gio/gactiongroupexporter.c
+++ b/gio/gactiongroupexporter.c
@@ -384,7 +384,7 @@ org_gtk_Actions_method_call (GDBusConnection *connection,
if (!g_action_group_has_action (exporter->action_group, name))
{
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS,
- "The named action does not exist.");
+ "The named action ('%s') does not exist.", name);
return;
}