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:
4142827
)
Ticket 12. The if (settings->GetStopOnError()) check and displays
author
Elena Mamontova
<helenh463@gmail.com>
Mon, 9 Nov 2015 16:02:41 +0000
(18:02 +0200)
committer
Elena Mamontova
<helenh463@gmail.com>
Mon, 9 Nov 2015 16:02:41 +0000
(18:02 +0200)
error users in depending on the result added in the ReadUsers() method.
projects/stargazer/users_impl.cpp
patch
|
blob
|
history
diff --git
a/projects/stargazer/users_impl.cpp
b/projects/stargazer/users_impl.cpp
index 14c4460438aad103277f381aa01843fbab6ad5cf..70a079bf8fb20608b9e47c1154566a833b4645ad 100644
(file)
--- a/
projects/stargazer/users_impl.cpp
+++ b/
projects/stargazer/users_impl.cpp
@@
-355,11
+355,21
@@
for (unsigned int i = 0; i < usersList.size(); i++)
AddUserIntoIndexes(ui);
AddUserIntoIndexes(ui);
- if (ui->ReadConf() < 0)
- errors++;
-
- if (ui->ReadStat() < 0)
- errors++;
+ if (settings->GetStopOnError())
+ {
+ if (ui->ReadConf() < 0)
+ return -1;
+
+ if (ui->ReadStat() < 0)
+ return -1;
+ } else
+ {
+ if (ui->ReadConf() < 0)
+ errors++;
+
+ if (ui->ReadStat() < 0)
+ errors++;
+ }
}
if (errors > 0)
}
if (errors > 0)