cssprovider: Be clearer about warnings vs errors

The CSS parser tried to warn about unexpected syntax that the spec
doesn't define as an error.
This commit is contained in:
Benjamin Otte 2021-09-20 05:57:14 +02:00
parent e9cf8c6cc7
commit e931afdc9b

View File

@ -180,7 +180,8 @@ gtk_css_provider_parsing_error (GtkCssProvider *provider,
{
char *s = gtk_css_section_to_string (section);
g_warning ("Theme parsing error: %s: %s",
g_warning ("Theme parser %s: %s: %s",
error->domain == GTK_CSS_PARSER_WARNING ? "warning" : "error",
s,
error->message);