There was an error while loading. Please reload this page.
1 parent 0231def commit 81c884dCopy full SHA for 81c884d
java/src/org/openqa/selenium/grid/router/HandleSession.java
@@ -147,8 +147,12 @@ public HttpResponse execute(HttpRequest req) {
147
Throwable cause = e.getCause();
148
if (cause instanceof RuntimeException) {
149
throw (RuntimeException) cause;
150
+ } else if (cause != null) {
151
+ throw new RuntimeException(errorMessage, cause);
152
+ } else if (e instanceof RuntimeException) {
153
+ throw (RuntimeException) e;
154
}
- throw new RuntimeException(errorMessage, cause);
155
+ throw new RuntimeException(errorMessage, e);
156
157
158
0 commit comments