mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
gsettings tool: 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
56fb675d86
commit
420f90d849
@ -467,7 +467,10 @@ gsettings_set (void)
|
||||
|
||||
if (new == NULL)
|
||||
{
|
||||
g_printerr ("%s\n", error->message);
|
||||
gchar *context;
|
||||
|
||||
context = g_variant_parse_error_print_context (error, global_value);
|
||||
g_printerr ("%s", context);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user