From: Elena Mamontova Date: Fri, 6 Nov 2015 16:34:44 +0000 (+0200) Subject: Ticket 12. The if() construction for StopOnError parameter added in the X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/41428276e313e4e796d52b90e4f8fa21292eb7d6 Ticket 12. The if() construction for StopOnError parameter added in the ReadSettings() method. --- diff --git a/projects/stargazer/settings_impl.cpp b/projects/stargazer/settings_impl.cpp index 16948821..35a259af 100644 --- a/projects/stargazer/settings_impl.cpp +++ b/projects/stargazer/settings_impl.cpp @@ -297,6 +297,15 @@ while (node) } } + if (strcasecmp(node->getName(), "StopOnError") == 0) + { + if (ParseYesNo(node->getValue(0), &stopOnError) != 0) + { + strError = "Incorrect StopOnError value: \'" + std::string(node->getValue(0)) + "\'"; + return -1; + } + } + if (strcasecmp(node->getName(), "WriteFreeMbTraffCost") == 0) { if (ParseYesNo(node->getValue(0), &writeFreeMbTraffCost) != 0)