GNOME Bugzilla – Bug 687185
org.gtk.Actions.Describe doesn't return an error for non-existing action names
Last modified: 2013-10-29 01:14:13 UTC
It's a private d-bus interface, but returning an error would be nice for debugging.
would be nice, but a little hard to do - all those activate functions return void.
No problem to use exceptions here. I'll cook a patch.
Created attachment 258352 [details] [review] 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.).
Review of attachment 258352 [details] [review]: ::: gio/gactiongroupexporter.c @@ +385,3 @@ + { + g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, + "The named action does not exist."); Including the name of the action would probably make it easier to debug apps.