From 420f90d849c7670f716b7d9dede81655f794a6da Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 22 Nov 2013 12:55:10 -0500 Subject: [PATCH] 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 --- gio/gsettings-tool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gio/gsettings-tool.c b/gio/gsettings-tool.c index 24c2694..451dcf1 100644 --- a/gio/gsettings-tool.c +++ b/gio/gsettings-tool.c @@ -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); } -- 2.7.4