Skip to content

Commit 8b6e4be

Browse files
committed
[grid] Halting docker execution if the daemon was not reached.
1 parent 1ef4da6 commit 8b6e4be

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/server/src/org/openqa/selenium/grid/docker/DockerOptions.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package org.openqa.selenium.grid.docker;
1919

2020
import com.google.common.collect.HashMultimap;
21-
import com.google.common.collect.ImmutableMap;
2221
import com.google.common.collect.ImmutableMultimap;
2322
import com.google.common.collect.Multimap;
2423
import org.openqa.selenium.Capabilities;
@@ -115,8 +114,7 @@ public Map<Capabilities, Collection<SessionFactory>> getDockerSessionFactories(
115114
Docker docker = new Docker(client);
116115

117116
if (!isEnabled(docker)) {
118-
LOG.warning("Unable to reach the Docker daemon.");
119-
return ImmutableMap.of();
117+
throw new DockerException("Unable to reach the Docker daemon at " + getDockerUri());
120118
}
121119

122120
DockerAssetsPath assetsPath = getAssetsPath(docker);

0 commit comments

Comments
 (0)