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:
Ryan Lortie 2013-11-22 12:55:10 -05:00
parent 56fb675d86
commit 420f90d849

View File

@ -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);
}