git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket. Get() function added.
[stg.git]
/
projects
/
stargazer
/
users_impl.cpp
diff --git
a/projects/stargazer/users_impl.cpp
b/projects/stargazer/users_impl.cpp
index 14c4460438aad103277f381aa01843fbab6ad5cf..60a36335b6a4040910d1e21a9c66ef681b711832 100644
(file)
--- a/
projects/stargazer/users_impl.cpp
+++ b/
projects/stargazer/users_impl.cpp
@@
-355,11
+355,22
@@
for (unsigned int i = 0; i < usersList.size(); i++)
AddUserIntoIndexes(ui);
AddUserIntoIndexes(ui);
- if (ui->ReadConf() < 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 (ui->ReadStat() < 0)
+ errors++;
+ }
}
if (errors > 0)
}
if (errors > 0)