Skip to content

Commit e867146

Browse files
committed
Don't swallow exceptions if unable to start safari
1 parent 2194392 commit e867146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/client/src/org/openqa/selenium/safari/SafariDriverService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public static SafariDriverService createDefaultService(SafariOptions options) {
5151
protected void waitUntilAvailable() throws MalformedURLException {
5252
try {
5353
PortProber.waitForPortUp(getUrl().getPort(), 20, SECONDS);
54-
} catch (Exception e) {
55-
e.printStackTrace();
54+
} catch (RuntimeException e) {
55+
throw new WebDriverException(e);
5656
}
5757
}
5858

0 commit comments

Comments
 (0)