git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b9e5e
)
Ticket 12. The if() construction for StopOnError parameter added in the
author
Elena Mamontova
<helenh463@gmail.com>
Fri, 6 Nov 2015 16:34:44 +0000
(18:34 +0200)
committer
Elena Mamontova
<helenh463@gmail.com>
Fri, 6 Nov 2015 16:34:44 +0000
(18:34 +0200)
ReadSettings() method.
projects/stargazer/settings_impl.cpp
patch
|
blob
|
history
diff --git
a/projects/stargazer/settings_impl.cpp
b/projects/stargazer/settings_impl.cpp
index 169488212f4453327c587f7c81b73280bfdc2947..35a259af0929ca8d4cb33236cba75edff4f559e3 100644
(file)
--- 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)