]> git.stg.codes - stg.git/commitdiff
Ticket 12. The if() construction for StopOnError parameter added in the
authorElena Mamontova <helenh463@gmail.com>
Fri, 6 Nov 2015 16:34:44 +0000 (18:34 +0200)
committerElena Mamontova <helenh463@gmail.com>
Fri, 6 Nov 2015 16:34:44 +0000 (18:34 +0200)
ReadSettings() method.

projects/stargazer/settings_impl.cpp

index 169488212f4453327c587f7c81b73280bfdc2947..35a259af0929ca8d4cb33236cba75edff4f559e3 100644 (file)
@@ -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)
     if (strcasecmp(node->getName(), "WriteFreeMbTraffCost") == 0)
         {
         if (ParseYesNo(node->getValue(0), &writeFreeMbTraffCost) != 0)