summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-13 19:26:26 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-13 19:26:26 +0200
commit27563bb44a5872d96eea32e1034de8278d9a9a73 (patch)
tree29c0f0cc27e11261e1241e2c54da1e6fe60ba9bb
parent46205bb66ab327ddea71e0577e276ca17634b26d (diff)
conf-parser: print message about invalid sections
-rw-r--r--conf-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf-parser.c b/conf-parser.c
index 6f5361f9c8..2cf90f2def 100644
--- a/conf-parser.c
+++ b/conf-parser.c
@@ -111,6 +111,7 @@ static int parse_line(const char *filename, unsigned line, char **section, const
return -ENOMEM;
if (sections && !strv_contains((char**) sections, n)) {
+ log_error("[%s:%u] Unknown section '%s'.", filename, line, n);
free(n);
return -EBADMSG;
}