From 05183748a8cfc44cbf4764c43d6dfee0ddde32d0 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 24 Aug 2015 14:57:39 +0200 Subject: [PATCH] conf: extend logging in CNF_ReadFile() --- conf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf.c b/conf.c index ecc15f3..1613bcb 100644 --- a/conf.c +++ b/conf.c @@ -372,10 +372,13 @@ CNF_ReadFile(const char *filename) in = fopen(filename, "r"); if (!in) { - LOG_FATAL(LOGF_Configure, "Could not open configuration file %s", filename); + LOG_FATAL(LOGF_Configure, "Could not open configuration file %s : %s", + filename, strerror(errno)); return; } + DEBUG_LOG(LOGF_Configure, "Reading %s", filename); + for (i = 1; fgets(line, sizeof(line), in); i++) { CNF_ParseLine(filename, i, line); }