From 41428276e313e4e796d52b90e4f8fa21292eb7d6 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Fri, 6 Nov 2015 18:34:44 +0200 Subject: [PATCH] Ticket 12. The if() construction for StopOnError parameter added in the ReadSettings() method. --- projects/stargazer/settings_impl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.44.2