Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xcmenu.git;a=commitdiff;h=41c1386f97ba668ec9bb1bee3f0dde027bae08d0
commit 41c1386f97ba668ec9bb1bee3f0dde027bae08d0 Author: James Buren <[email protected]> Date: Thu Jan 8 10:06:40 2009 -0600 xcmenu.c * add additional information for when a parsing error occurs diff --git a/xcmenu.c b/xcmenu.c index d354194..0d24018 100644 --- a/xcmenu.c +++ b/xcmenu.c @@ -109,7 +109,11 @@ static void parse_theme() char selectedrightend[BUFFER]; config_init(&cfg); if (!config_read_file(&cfg,themefile)) - error("Failed to parse theme file.",NULL); + { + char buffer[BUFFER]; + snprintf(buffer,sizeof(buffer),"Failed to parse theme file: %s at line %d",config_error_text(&cfg),config_error_line(&cfg)); + error(buffer,NULL); + } snprintf(background,sizeof(background),"%s%s",theme,config_lookup_string(&cfg,"theme.background")); snprintf(leftend,sizeof(leftend),"%s%s",theme,config_lookup_string(&cfg,"theme.leftend")); snprintf(rightend,sizeof(rightend),"%s%s",theme,config_lookup_string(&cfg,"theme.rightend")); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
