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:
Florian Forster 2007-10-27 17:10:56 +02:00 committed by Julien Danjou
parent ddfc087c99
commit 71e6e4db65
1 changed files with 2 additions and 2 deletions

View File

@ -268,8 +268,8 @@ parse_config(Display * disp, int scr,const char *confpatharg, awesome_config *aw
cfg = cfg_init(opts, CFGF_NONE); cfg = cfg_init(opts, CFGF_NONE);
if(cfg_parse(cfg, confpath) == CFG_PARSE_ERROR) if(cfg_parse(cfg, confpath) != CFG_SUCCESS)
fprintf(stderr, "awesome: error parsing configuration file\n"); fprintf(stderr, "awesome: fatal: Parsing configuration file %s failed.\n", confpath);
cfg_general = cfg_getsec(cfg, "general"); cfg_general = cfg_getsec(cfg, "general");
cfg_colors = cfg_getsec(cfg, "colors"); cfg_colors = cfg_getsec(cfg, "colors");