mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-28 05:02:10 +01:00
glib-compile-schemas: Improve an error message
Mention the expected type when failing to parse a GVariant.
This commit is contained in:
parent
aecac6e1cb
commit
074fe89f22
@ -469,6 +469,13 @@ key_state_end_default (KeyState *state,
|
|||||||
state->default_value = g_variant_parse (state->type,
|
state->default_value = g_variant_parse (state->type,
|
||||||
state->unparsed_default_value->str,
|
state->unparsed_default_value->str,
|
||||||
NULL, NULL, error);
|
NULL, NULL, error);
|
||||||
|
if (!state->default_value)
|
||||||
|
{
|
||||||
|
gchar *type = g_variant_type_dup_string (state->type);
|
||||||
|
g_prefix_error (error, "failed to parse <default> value of type '%s': ", type);
|
||||||
|
g_free (type);
|
||||||
|
}
|
||||||
|
|
||||||
key_state_check_range (state, error);
|
key_state_check_range (state, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user