exporter: give error on Describe of missing action
authorRyan Lortie <desrt@desrt.ca>
Mon, 28 Oct 2013 21:49:14 +0000 (14:49 -0700)
committerRyan Lortie <desrt@desrt.ca>
Tue, 29 Oct 2013 01:11:46 +0000 (18:11 -0700)
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

gio/gactiongroupexporter.c

index 2e1e8f4b9106f7dd334344e79e8427a49302135a..33824b7ce80d9d76273445c1c68e4dd41d2925d1 100644 (file)
@@ -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;
         }