1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 03:37:15 +01:00

adding comment char to errors included in generated scripts

This commit is contained in:
Vadim Kurland 2008-06-07 04:40:30 +00:00
parent 07be919f07
commit 99f23add7d
6 changed files with 11 additions and 11 deletions

View File

@ -398,7 +398,7 @@ int main(int argc, char * const * argv)
{
ofile << "! Policy compiler errors and warnings:"
<< endl;
ofile << c->getErrors();
ofile << c->getErrors("! ");
}
ofile << c->getCompiledScript();

View File

@ -518,7 +518,7 @@ int main(int argc, char * const *argv)
{
ipf_file << "# Policy compiler errors and warnings:"
<< endl;
ipf_file << c.getErrors();
ipf_file << c.getErrors("# ");
}
ipf_file << c.getCompiledScript();
@ -553,7 +553,7 @@ int main(int argc, char * const *argv)
{
nat_file << "# NAT compiler errors and warnings:"
<< endl;
nat_file << n.getErrors();
nat_file << n.getErrors("# ");
}

View File

@ -449,7 +449,7 @@ int main(int argc, char * const *argv)
{
fw_file << "# Policy compiler errors and warnings:"
<< endl;
fw_file << c.getErrors();
fw_file << c.getErrors("# ");
}
fw_file << c.getCompiledScript();

View File

@ -642,7 +642,7 @@ _("Dynamic interface %s should not have an IP address object attached to it. Thi
{
n_str << "# NAT compiler errors and warnings:"
<< endl;
n_str << n.getErrors();
n_str << n.getErrors("# ");
}
if (Compiler::isRootRuleSet(nat))
@ -696,7 +696,7 @@ _("Dynamic interface %s should not have an IP address object attached to it. Thi
{
m_str << "# Policy compiler errors and warnings:"
<< endl;
m_str << m.getErrors();
m_str << m.getErrors("# ");
}
m_str << m.getCompiledScript();
@ -733,7 +733,7 @@ _("Dynamic interface %s should not have an IP address object attached to it. Thi
{
c_str << "# Policy compiler errors and warnings:"
<< endl;
c_str << c.getErrors();
c_str << c.getErrors("# ");
}
c_str << c.getCompiledScript();
c_str << c.commit();

View File

@ -753,7 +753,7 @@ int main(int argc, char * const *argv)
*(generated_scripts[ruleset_name])
<< "# NAT compiler errors and warnings:"
<< endl;
*(generated_scripts[ruleset_name]) << n.getErrors();
*(generated_scripts[ruleset_name]) << n.getErrors("# ");
}
*(generated_scripts[ruleset_name]) << n.getCompiledScript();
*(generated_scripts[ruleset_name]) << endl;
@ -814,7 +814,7 @@ int main(int argc, char * const *argv)
*(generated_scripts[ruleset_name])
<< "# Policy compiler errors and warnings:"
<< endl;
*(generated_scripts[ruleset_name]) << c.getErrors();
*(generated_scripts[ruleset_name]) << c.getErrors("# ");
}
*(generated_scripts[ruleset_name]) << c.getCompiledScript();
*(generated_scripts[ruleset_name]) << endl;

View File

@ -611,7 +611,7 @@ int main(int argc, char * const * argv)
{
ofile << "! Policy compiler errors and warnings:"
<< endl;
ofile << c->getErrors();
ofile << c->getErrors("! ");
}
ofile << c->getCompiledScript();
@ -621,7 +621,7 @@ int main(int argc, char * const * argv)
{
ofile << "! NAT compiler errors and warnings:"
<< endl;
ofile << n->getErrors();
ofile << n->getErrors("! ");
}
ofile << n->getCompiledScript();