Debugging

This commit is contained in:
stephb9959
2022-02-25 00:27:35 -08:00
parent 85be844bd5
commit d1ab83d3d0

View File

@@ -81,20 +81,17 @@ namespace OpenWifi{
BadRequest(RESTAPI::Errors::NameMustBeSet);
return false;
}
/* try {
auto Blocks = P.parse(i.configuration).extract<Poco::JSON::Object::Ptr>();
auto N = Blocks->getNames();
for (const auto &j: N) {
if (std::find(SectionNames.cbegin(), SectionNames.cend(), j) == SectionNames.cend()) {
std::cout << "Block section name rejected: " << j << std::endl;
BadRequest(RESTAPI::Errors::ConfigBlockInvalid);
return false;
}
auto Blocks = P.parse(i.configuration).extract<Poco::JSON::Object::Ptr>();
auto N = Blocks->getNames();
for (const auto &j: N) {
if (std::find(SectionNames.cbegin(), SectionNames.cend(), j) == SectionNames.cend()) {
std::cout << "Block section name rejected: " << j << std::endl;
BadRequest(RESTAPI::Errors::ConfigBlockInvalid);
return false;
}
} catch (...) {
std::cout << "Failed parsing block" << std::endl;
}
*/
try {
if (ValidateUCentralConfiguration(i.configuration, Error)) {
/* nothing to do */ ;