From 27563bb44a5872d96eea32e1034de8278d9a9a73 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 13 Apr 2010 19:26:26 +0200 Subject: [PATCH] conf-parser: print message about invalid sections --- conf-parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/conf-parser.c b/conf-parser.c index 6f5361f9c..2cf90f2de 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; } -- 2.30.2