gapplication(1): print GVariant errors in context

Use g_variant_parse_error_print_context() to format the error message
from the GVariant parser.

https://bugzilla.gnome.org/show_bug.cgi?id=715028
This commit is contained in:
Ryan Lortie 2013-11-22 12:57:21 -05:00
parent 420f90d849
commit 94a89f6c2f

View File

@ -336,9 +336,13 @@ app_action (gchar **args)
if (!parameter)
{
g_printerr (_("error parsing action parameter: %s\n"), error->message);
gchar *context;
context = g_variant_parse_error_print_context (error, args[2]);
g_printerr (_("error parsing action parameter: %s\n"), context);
g_variant_builder_clear (&params);
g_error_free (error);
g_free (context);
return 1;
}