X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/41428276e313e4e796d52b90e4f8fa21292eb7d6..cd22a6554a8c6d917306304aeaf5d2b7a9d99ae4:/projects/stargazer/users_impl.cpp diff --git a/projects/stargazer/users_impl.cpp b/projects/stargazer/users_impl.cpp index 14c44604..70a079bf 100644 --- 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); - 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)