X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1c9c1588c5d07cea181632fc95b0046b6b04758e..e9f74534ad9bd4df3cecab080f6b6ac9a6cb6b7c:/projects/stargazer/users_impl.cpp diff --git a/projects/stargazer/users_impl.cpp b/projects/stargazer/users_impl.cpp index bc440636..14c44604 100644 --- a/projects/stargazer/users_impl.cpp +++ b/projects/stargazer/users_impl.cpp @@ -344,6 +344,7 @@ if (store->GetUsersList(&usersList) < 0) user_iter ui; +unsigned errors = 0; for (unsigned int i = 0; i < usersList.size(); i++) { USER_IMPL u(settings, store, tariffs, sysAdmin, this, m_services); @@ -355,12 +356,14 @@ for (unsigned int i = 0; i < usersList.size(); i++) AddUserIntoIndexes(ui); if (ui->ReadConf() < 0) - return -1; + errors++; if (ui->ReadStat() < 0) - return -1; + errors++; } +if (errors > 0) + return -1; return 0; } //-----------------------------------------------------------------------------