chiark / gitweb /
conf-parser: print message about invalid sections
[elogind.git] / 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;
                 }