зеркало из https://github.com/microsoft/lisa.git
improve error message
This commit is contained in:
Родитель
4e7c99c73b
Коммит
5eb1e71d72
|
@ -164,14 +164,14 @@ class SshShell(InitializableMixin):
|
|||
)
|
||||
if not is_ready:
|
||||
raise LisaException(
|
||||
f"cannot open port {self._connection_info.port} to server: "
|
||||
f"cannot open SSH port {self._connection_info.port} to server: "
|
||||
f"[{self._connection_info.address}:{self._connection_info.port}]"
|
||||
)
|
||||
try:
|
||||
stdout = try_connect(self._connection_info)
|
||||
except Exception as identifier:
|
||||
raise LisaException(
|
||||
f"failed to connect "
|
||||
f"failed to connect SSH "
|
||||
f"[{self._connection_info.address}:{self._connection_info.port}]: "
|
||||
f"{identifier}"
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче