@@ -144,13 +144,12 @@ public void start() throws IOException {
144
144
}
145
145
}
146
146
} catch (IOException e ) {
147
- e .printStackTrace ();
148
147
throw new WebDriverException (
149
- String .format ("Failed to connect to binary %s on port %d; process output follows: \ n %s" ,
148
+ String .format ("Failed to connect to binary %s on port %d; process output follows: % n%s" ,
150
149
process .toString (), port , process .getConsoleOutput ()), e );
151
150
} catch (WebDriverException e ) {
152
151
throw new WebDriverException (
153
- String .format ("Failed to connect to binary %s on port %d; process output follows: \ n %s" ,
152
+ String .format ("Failed to connect to binary %s on port %d; process output follows: % n%s" ,
154
153
process .toString (), port , process .getConsoleOutput ()), e );
155
154
} catch (Exception e ) {
156
155
throw new WebDriverException (e );
@@ -160,7 +159,7 @@ public void start() throws IOException {
160
159
161
160
// Marionette sends back an initial acknowledgement response upon first
162
161
// connect. We need to read that response before we can proceed.
163
- String rawResponse = receiveResponse ();
162
+ String ignored = receiveResponse ();
164
163
165
164
// This initializes the "actor" for future communication with this instance.
166
165
sendCommand (serializeCommand (new Command (null , "getMarionetteID" )));
@@ -230,7 +229,6 @@ public Response execute(Command command) throws IOException {
230
229
}
231
230
232
231
private String serializeCommand (Command command ) {
233
- // System.out.println("Command " + command);
234
232
String commandName = command .getName ();
235
233
Map <String , Object > params = Maps .newHashMap ();
236
234
params .putAll (command .getParameters ());
@@ -343,7 +341,6 @@ public void quit() {
343
341
reader .close ();
344
342
socket .close ();
345
343
} catch (IOException e ) {
346
- e .printStackTrace ();
347
344
}
348
345
socket = null ;
349
346
// This should only be called after the QUIT command has been sent,
0 commit comments