Improve throw msg in CoreAdminHandler

pull/7639/head
maximilionus 2025-07-24 22:30:17 +03:00
parent 0b7d728b04
commit be01e09eff
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class CoreAdminHandler
process = Process.GetProcessById(_linuxSudoPid);
await Task.Delay(5000); // Sudo exit on wrong password takes 2-4 sec.
if (process.HasExited)
throw new InvalidOperationException("Process exited too soon, likely improper sudo password.");
throw new InvalidOperationException("Process ended too early, likely due to an incorrect sudo password.");
}
catch (Exception ex)
{