[dotnet] Extend invalid selenium manager process exit codes
Extend invalid selenium manager process exit codes
@@ -145,9 +145,9 @@ private static string RunCommand(string fileName, string arguments)
string output = outputBuilder.ToString().Trim();
- if (processExitCode > 0)
+ if (processExitCode != 0)
{
- throw new WebDriverException($"Invalid response from process: {fileName} {arguments}\n{output}");
+ throw new WebDriverException($"Invalid response from process (code {processExitCode}): {fileName} {arguments}\n{output}");
}
return output.Replace("INFO\t", "");
