forked from p34709852/monkey
Agent: Modify exception message when server connection fails
This commit is contained in:
parent
c9a9367dd1
commit
1776b3b0b7
|
@ -153,7 +153,9 @@ class InfectionMonkey:
|
|||
if self._current_server_is_set():
|
||||
logger.debug(f"Default server set to: {self._control_client.server_address}")
|
||||
else:
|
||||
raise Exception(f"Monkey couldn't find servers: {self._opts.servers} .")
|
||||
raise Exception(
|
||||
f"Failed to connect to the island via any known server address: {self._opts.servers}"
|
||||
)
|
||||
|
||||
self._control_client.wakeup(parent=self._opts.parent)
|
||||
|
||||
|
|
Loading…
Reference in New Issue