[glib/glib-2-28] Add schema name in error message
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-28] Add schema name in error message
- Date: Fri, 18 Feb 2011 04:35:12 +0000 (UTC)
commit 7b18bf4b95c88c49ce61d81e41fa2bcd2685aedb
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 14 19:13:09 2011 -0500
Add schema name in error message
Why not be helpful if it doesn't cost anything...
gio/gsettingsschema.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index fdc1779..77eb119 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -306,7 +306,8 @@ g_settings_schema_get_value (GSettingsSchema *schema,
value = gvdb_table_get_raw_value (schema->priv->table, key);
if G_UNLIKELY (value == NULL)
- g_error ("schema does not contain a key named '%s'", key);
+ g_error ("Settings schema '%s' does not contain a key named '%s'",
+ schema->priv->name, key);
iter = g_variant_iter_new (value);
g_variant_unref (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]