diff --git a/OMPython/OMCSession.py b/OMPython/OMCSession.py index ac99dc05..b0b2f757 100644 --- a/OMPython/OMCSession.py +++ b/OMPython/OMCSession.py @@ -764,9 +764,8 @@ def _docker_omc_cmd( if sys.platform == "win32": extraFlags = ["-d=zmqDangerousAcceptConnectionsFromAnywhere"] if not self._interactivePort: - raise OMCSessionException("docker on Windows requires knowing which port to connect to. For " - "dockerContainer=..., the container needs to have already manually exposed " - "this port when it was started (-p 127.0.0.1:n:n) or you get an error later.") + raise OMCSessionException("docker on Windows requires knowing which port to connect to - " + "please set the interactivePort argument") if sys.platform == "win32": if isinstance(self._interactivePort, str): @@ -892,9 +891,10 @@ def _docker_omc_cmd(self, omc_path_and_args_list) -> list: if sys.platform == "win32": extraFlags = ["-d=zmqDangerousAcceptConnectionsFromAnywhere"] if not self._interactivePort: - raise OMCSessionException("docker on Windows requires knowing which port to connect to. For " - "dockerContainer=..., the container needs to have already manually exposed " - "this port when it was started (-p 127.0.0.1:n:n) or you get an error later.") + raise OMCSessionException("Docker on Windows requires knowing which port to connect to - " + "Please set the interactivePort argument. Furthermore, the container needs " + "to have already manually exposed this port when it was started " + "(-p 127.0.0.1:n:n) or you get an error later.") if isinstance(self._interactivePort, int): extraFlags = extraFlags + [f"--interactivePort={int(self._interactivePort)}"]