summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-09 08:55:51 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-09 08:55:51 +0100
commita199fa3275c2bf2dfe6320de1410266ac626c6db (patch)
tree2139ecc65d188e9d2824c237d758cd8bfece06d9 /source/theme.c
parent5188e36147010c22c3fc5041e7a82f3f1a7c9e3f (diff)
Improve error message theme a little bit
Diffstat (limited to 'source/theme.c')
-rw-r--r--source/theme.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/theme.c b/source/theme.c
index 03f86fde..ecb475a9 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -861,12 +861,14 @@ gboolean rofi_theme_parse_file ( const char *file )
extern const char*input_str;
str_len = 0;
input_str = NULL;
- while ( yyparse () ) {
- ;
- }
+ int parser_retv = yyparse();
yylex_destroy ();
g_free ( filename );
yyin = NULL;
+ if ( parser_retv != 0 ){
+ fprintf ( stderr, "Failed to parse theme: %s.\n", file );
+ return TRUE;
+ }
return FALSE;
}
gboolean rofi_theme_parse_string ( const char *string )