File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
java/src/org/openqa/selenium/manager Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ private static String runCommand(String... command) {
91
91
String output = "" ;
92
92
try {
93
93
Process process = new ProcessBuilder (command )
94
- .redirectErrorStream (false ).start ();
94
+ .redirectErrorStream (true ).start ();
95
95
process .waitFor ();
96
96
output = CharStreams .toString (new InputStreamReader (
97
97
process .getInputStream (), StandardCharsets .UTF_8 ));
@@ -104,7 +104,8 @@ private static String runCommand(String... command) {
104
104
e .getClass ().getSimpleName (), Arrays .toString (command ), e .getMessage ()));
105
105
}
106
106
if (!output .startsWith (INFO )) {
107
- throw new WebDriverException ("Error running command: " + Arrays .toString (command ));
107
+ throw new WebDriverException ("Error running selenium-manager: " + Arrays .toString (command ) +
108
+ ": " + output );
108
109
}
109
110
110
111
return output .trim ();
You can’t perform that action at this time.
0 commit comments