mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
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:
parent
420f90d849
commit
94a89f6c2f
@ -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 (¶ms);
|
||||
g_error_free (error);
|
||||
g_free (context);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user