X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/fe33b745d83085459e8a12e7a5a29d95c74c69d1..3bbc755fc0e1ab3a1e47cb39c4eeaa986d4b0d8b:/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; } //-----------------------------------------------------------------------------