]> err.no Git - systemd/commitdiff
conf-parser: print message about invalid sections
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 17:26:26 +0000 (19:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 17:26:26 +0000 (19:26 +0200)
conf-parser.c

index 6f5361f9c81efc5770140a7725ba0a1e2589d335..2cf90f2defa1ff8dec0ae4d5c7aad47d433baecd 100644 (file)
@@ -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;
                 }