[glib] gsettings tool: print GVariant errors in context
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gsettings tool: print GVariant errors in context
- Date: Sun, 22 Dec 2013 16:42:07 +0000 (UTC)
commit 420f90d849c7670f716b7d9dede81655f794a6da
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Nov 22 12:55:10 2013 -0500
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 files changed, 4 insertions(+), 1 deletions(-)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]