summaryrefslogtreecommitdiffstats
path: root/lexer/theme-parser.y
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2018-04-28 15:29:17 +0200
committerDave Davenport <qball@gmpclient.org>2018-04-28 15:29:17 +0200
commit02baaf4df4410858a526516525e75b490c22ac40 (patch)
tree9bbddcf1f52be81e17b4baa134bd795c9a58d302 /lexer/theme-parser.y
parent3a726eabbabf1867325b2d2bd51b6b657e655431 (diff)
[Lexer] Make not finding a configuration option a warning, not an error.
Diffstat (limited to 'lexer/theme-parser.y')
-rw-r--r--lexer/theme-parser.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y
index acb11084..f5e11156 100644
--- a/lexer/theme-parser.y
+++ b/lexer/theme-parser.y
@@ -321,7 +321,11 @@ t_config_property
char *error = NULL;
if ( config_parse_set_property ( $1, &error ) ) {
// TODO Generate error.
+#ifdef FATAL_CONFIG_ERROR
yyerror ( &(@$), @$.filename, error );
+#else
+ g_warning("%s:%d:%d: %s\n", @$.filename, @$.first_line, @$.first_column, error);
+#endif
g_free(error);
}
}