Skip to content

Commit 1bc37b7

Browse files
committed
Allow the http codecs to throw webdriver exceptions
1 parent fa0bed6 commit 1bc37b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ protected Response execute(String driverCommand, Map<String, ?> parameters) {
610610
// {"ELEMENT": id} to RemoteWebElements.
611611
Object value = converter.apply(response.getValue());
612612
response.setValue(value);
613-
} catch (NoSuchSessionException e) {
613+
} catch (WebDriverException e) {
614614
throw e;
615615
} catch (Exception e) {
616616
log(sessionId, command.getName(), command, When.EXCEPTION);

0 commit comments

Comments
 (0)