Skip to content

Commit

Permalink
add machine to SSH connection exception message (#3536)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltalirz authored and sphuber committed Nov 11, 2019
1 parent 47f41d7 commit 186eea1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aiida/transports/plugins/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,9 @@ def open(self):
try:
self._client.connect(self._machine, **connection_arguments)
except Exception as exc:
self.logger.error('Error connecting through SSH: [{}] {}, '
'connect_args were: {}'.format(exc.__class__.__name__, exc, self._connect_args))
self.logger.error("Error connecting to '{}' through SSH: ".format(self._machine) +
'[{}] {}, '.format(self.__class__.__name__, exc) +
'connect_args were: {}'.format(self._connect_args))
raise

# Open also a SFTPClient
Expand Down

0 comments on commit 186eea1

Please sign in to comment.