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 80234ad commit 2c21070Copy full SHA for 2c21070
src/common/config/config_file.cpp
@@ -692,6 +692,12 @@ void ConfigFile::parse(Stream* stream)
692
previous = ¶meters[n];
693
}
694
695
+ if (!previous)
696
+ {
697
+ badLine(streamName, "master parameter is missing before subconfig start '{'");
698
+ return;
699
+ }
700
+
701
{ // subconf scope
702
SubStream subStream(stream->getFileName());
703
int level = 1;
@@ -735,7 +741,7 @@ void ConfigFile::parse(Stream* stream)
735
741
736
742
737
743
if (level > 0)
738
- badLine(streamName, "< missed closing bracket '}' >");
744
+ badLine(streamName, "missed closing bracket '}'");
739
745
740
746
previous->sub = FB_NEW_POOL(getPool())
747
ConfigFile(getPool(), &subStream, flags);
0 commit comments