mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Add schema name in error message
Why not be helpful if it doesn't cost anything...
This commit is contained in:
parent
a6f0249d58
commit
b2919e558b
@ -306,7 +306,8 @@ g_settings_schema_get_value (GSettingsSchema *schema,
|
|||||||
value = gvdb_table_get_raw_value (schema->priv->table, key);
|
value = gvdb_table_get_raw_value (schema->priv->table, key);
|
||||||
|
|
||||||
if G_UNLIKELY (value == NULL)
|
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);
|
iter = g_variant_iter_new (value);
|
||||||
g_variant_unref (value);
|
g_variant_unref (value);
|
||||||
|
Loading…
Reference in New Issue
Block a user