mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Prevent error pileup
This commit is contained in:
parent
3c808dc874
commit
9040eac4eb
@ -502,8 +502,7 @@ key_state_start_aliases (KeyState *state,
|
|||||||
g_set_error_literal (error, G_MARKUP_ERROR,
|
g_set_error_literal (error, G_MARKUP_ERROR,
|
||||||
G_MARKUP_ERROR_INVALID_CONTENT,
|
G_MARKUP_ERROR_INVALID_CONTENT,
|
||||||
"<aliases> already specified for this key");
|
"<aliases> already specified for this key");
|
||||||
|
else if (!state->is_flags && !state->is_enum && !state->has_choices)
|
||||||
if (!state->is_flags && !state->is_enum && !state->has_choices)
|
|
||||||
g_set_error_literal (error, G_MARKUP_ERROR,
|
g_set_error_literal (error, G_MARKUP_ERROR,
|
||||||
G_MARKUP_ERROR_INVALID_CONTENT,
|
G_MARKUP_ERROR_INVALID_CONTENT,
|
||||||
"<aliases> can only be specified for keys with "
|
"<aliases> can only be specified for keys with "
|
||||||
@ -1645,6 +1644,7 @@ parse_gschema_files (gchar **files,
|
|||||||
|
|
||||||
/* let them know */
|
/* let them know */
|
||||||
fprintf (stderr, "%s: %s. ", filename, error->message);
|
fprintf (stderr, "%s: %s. ", filename, error->message);
|
||||||
|
g_clear_error (&error);
|
||||||
|
|
||||||
if (strict)
|
if (strict)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user