Convert throws to Throws.

This commit is contained in:
Miguel Portilla
2016-03-30 17:21:14 -04:00
committed by Nik Bougalis
parent c37261858a
commit efe4c9cae3
4 changed files with 15 additions and 11 deletions

View File

@@ -101,7 +101,7 @@ populate (Section const& section, std::string const& field, std::ostream& log,
log << "0.0.0.0 not allowed'" <<
"' for key '" << field << "' in [" <<
section.name () << "]\n";
throw std::exception ();
Throw<std::exception> ();
}
else
{
@@ -127,7 +127,7 @@ populate (Section const& section, std::string const& field, std::ostream& log,
{
log << "IP specified for " << field << " is also for " <<
"admin: " << ip << " in [" << section.name() << "]\n";
throw std::exception();
Throw<std::exception> ();
}
ips->emplace_back (addr.first.address ());