Skip to content

Commit 9215d55

Browse files
committed
[grid] Improving message when server cannot bind to address
1 parent c10bff7 commit 9215d55

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

java/src/org/openqa/selenium/netty/server/NettyServer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ public NettyServer start() {
164164
throw new UncheckedIOException(new IOException("Start up interrupted", e));
165165
} catch (Exception e) {
166166
if (e instanceof BindException) {
167-
throw new UncheckedIOException(new IOException(String.format("Port %s already in use", port), e));
167+
String errorMessage = String.format(
168+
"Could not bind to address or port is already in use. Host %s, Port %s", host, port);
169+
throw new UncheckedIOException(new IOException(errorMessage, e));
168170
}
169171
throw e;
170172
}

0 commit comments

Comments
 (0)