config.c: Print an appropriate error message when reading the configuration fails.
Signed-off-by: Florian Forster <octo@verplant.org>
This commit is contained in:
parent
ddfc087c99
commit
71e6e4db65
4
config.c
4
config.c
|
@ -268,8 +268,8 @@ parse_config(Display * disp, int scr,const char *confpatharg, awesome_config *aw
|
|||
|
||||
cfg = cfg_init(opts, CFGF_NONE);
|
||||
|
||||
if(cfg_parse(cfg, confpath) == CFG_PARSE_ERROR)
|
||||
fprintf(stderr, "awesome: error parsing configuration file\n");
|
||||
if(cfg_parse(cfg, confpath) != CFG_SUCCESS)
|
||||
fprintf(stderr, "awesome: fatal: Parsing configuration file %s failed.\n", confpath);
|
||||
|
||||
cfg_general = cfg_getsec(cfg, "general");
|
||||
cfg_colors = cfg_getsec(cfg, "colors");
|
||||
|
|
Loading…
Reference in New Issue