if (bail)
{
- printf("There were errors in your configuration:\n%s",errstr.str().c_str());
+ /* Unneeded because of the log() aboive? */
+ // printf("There were errors in your configuration:\n%s",errstr.str().c_str());
Exit(0);
}
else
if((ch == '#') && !in_quote)
in_comment = true;
+ if(((ch == '\n') || (ch == '\r')) && in_quote)
+ {
+ errorstream << "Got a newline within a quoted section, this is probably a typo: " << filename << ":" << linenumber << std::endl;
+ return false;
+ }
+
switch(ch)
{
case '\n':
if((tagname == "include") && (current_key == "file"))
{
- this->DoInclude(target, current_value, errorstream);
+ if(!this->DoInclude(target, current_value, errorstream))
+ return false;
}
current_key.clear();