From 71e6e4db658d55fddbbb321cb6f3f8aea11d8da5 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 27 Oct 2007 17:10:56 +0200 Subject: [PATCH] config.c: Print an appropriate error message when reading the configuration fails. Signed-off-by: Florian Forster --- config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index 01a3e1de..436e9ea1 100644 --- a/config.c +++ b/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");