Renaming one of the errors
This commit is contained in:
parent
43fd9d5d90
commit
8ec4232a96
1 changed files with 1 additions and 1 deletions
|
|
@ -773,7 +773,7 @@ ErrorCode ServerController::isUserInSudo(const ServerCredentials &credentials, D
|
||||||
if (stdErr.contains("command not found"))
|
if (stdErr.contains("command not found"))
|
||||||
return ErrorCode::SudoPackageIsNotPreinstalled;
|
return ErrorCode::SudoPackageIsNotPreinstalled;
|
||||||
if (stdErr.contains("sudoers"))
|
if (stdErr.contains("sudoers"))
|
||||||
return ErrorCode::ServerUserNotInSudoers;
|
return ErrorCode::ServerUserNotListedInSudoers;
|
||||||
if (stdErr.contains("password is required"))
|
if (stdErr.contains("password is required"))
|
||||||
return ErrorCode::ServerUserPasswordRequired;
|
return ErrorCode::ServerUserPasswordRequired;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue