conf: extend logging in CNF_ReadFile()
This commit is contained in:
parent
e56154a687
commit
05183748a8
1 changed files with 4 additions and 1 deletions
5
conf.c
5
conf.c
|
@ -372,10 +372,13 @@ CNF_ReadFile(const char *filename)
|
||||||
|
|
||||||
in = fopen(filename, "r");
|
in = fopen(filename, "r");
|
||||||
if (!in) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEBUG_LOG(LOGF_Configure, "Reading %s", filename);
|
||||||
|
|
||||||
for (i = 1; fgets(line, sizeof(line), in); i++) {
|
for (i = 1; fgets(line, sizeof(line), in); i++) {
|
||||||
CNF_ParseLine(filename, i, line);
|
CNF_ParseLine(filename, i, line);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue