@@ -73,24 +73,24 @@ private static string Binary
73
73
if ( string . IsNullOrEmpty ( binary ) )
74
74
{
75
75
#if NET45 || NET46 || NET47
76
- binary = "selenium-manager/windows/selenium-manager.exe" ;
76
+ binary = "selenium-manager/windows/selenium-manager.exe" ;
77
77
#else
78
- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
79
- {
80
- binary = "selenium-manager/windows/selenium-manager.exe" ;
81
- }
82
- else if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
83
- {
84
- binary = "selenium-manager/linux/selenium-manager" ;
85
- }
86
- else if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
87
- {
88
- binary = "selenium-manager/macos/selenium-manager" ;
89
- }
90
- else
91
- {
92
- throw new WebDriverException ( "Selenium Manager did not find supported operating system" ) ;
93
- }
78
+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
79
+ {
80
+ binary = "selenium-manager/windows/selenium-manager.exe" ;
81
+ }
82
+ else if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
83
+ {
84
+ binary = "selenium-manager/linux/selenium-manager" ;
85
+ }
86
+ else if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
87
+ {
88
+ binary = "selenium-manager/macos/selenium-manager" ;
89
+ }
90
+ else
91
+ {
92
+ throw new WebDriverException ( "Selenium Manager did not find supported operating system" ) ;
93
+ }
94
94
#endif
95
95
}
96
96
@@ -145,9 +145,9 @@ private static string RunCommand(string fileName, string arguments)
145
145
146
146
string output = outputBuilder . ToString ( ) . Trim ( ) ;
147
147
148
- if ( processExitCode > 0 )
148
+ if ( processExitCode != 0 )
149
149
{
150
- throw new WebDriverException ( $ "Invalid response from process: { fileName } { arguments } \n { output } ") ;
150
+ throw new WebDriverException ( $ "Invalid response from process (code { processExitCode } ) : { fileName } { arguments } \n { output } ") ;
151
151
}
152
152
153
153
return output . Replace ( "INFO\t " , "" ) ;
0 commit comments