Renaming one of the errors

This commit is contained in:
lunardunno 2024-10-27 17:17:06 +04:00 committed by GitHub
parent 43fd9d5d90
commit 8ec4232a96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -773,7 +773,7 @@ ErrorCode ServerController::isUserInSudo(const ServerCredentials &credentials, D
if (stdErr.contains("command not found"))
return ErrorCode::SudoPackageIsNotPreinstalled;
if (stdErr.contains("sudoers"))
return ErrorCode::ServerUserNotInSudoers;
return ErrorCode::ServerUserNotListedInSudoers;
if (stdErr.contains("password is required"))
return ErrorCode::ServerUserPasswordRequired;