mirror of https://github.com/davatorium/rofi.git
[Lexer] Make not finding a configuration option a warning, not an error.
This commit is contained in:
parent
3a726eabba
commit
02baaf4df4
|
@ -321,7 +321,11 @@ t_config_property
|
||||||
char *error = NULL;
|
char *error = NULL;
|
||||||
if ( config_parse_set_property ( $1, &error ) ) {
|
if ( config_parse_set_property ( $1, &error ) ) {
|
||||||
// TODO Generate error.
|
// TODO Generate error.
|
||||||
|
#ifdef FATAL_CONFIG_ERROR
|
||||||
yyerror ( &(@$), @$.filename, error );
|
yyerror ( &(@$), @$.filename, error );
|
||||||
|
#else
|
||||||
|
g_warning("%s:%d:%d: %s\n", @$.filename, @$.first_line, @$.first_column, error);
|
||||||
|
#endif
|
||||||
g_free(error);
|
g_free(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue