We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9832016 commit 22fd998Copy full SHA for 22fd998
src/common/config/config_file.cpp
@@ -649,6 +649,12 @@ void ConfigFile::parse(Stream* stream)
649
previous = ¶meters[n];
650
}
651
652
+ if (!previous)
653
+ {
654
+ badLine(streamName, "master parameter is missing before subconfig start '{'");
655
+ return;
656
+ }
657
+
658
{ // subconf scope
659
SubStream subStream(stream->getFileName());
660
int level = 1;
@@ -692,7 +698,7 @@ void ConfigFile::parse(Stream* stream)
692
698
693
699
694
700
if (level > 0)
695
- badLine(streamName, "< missed closing bracket '}' >");
701
+ badLine(streamName, "missed closing bracket '}'");
696
702
697
703
previous->sub = FB_NEW_POOL(getPool())
704
ConfigFile(getPool(), &subStream, flags);
0 commit comments