Commit 695fcb16 authored by Rafael Monnerat's avatar Rafael Monnerat

Raise using the original Message .



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26084 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2f37e61
......@@ -63,11 +63,9 @@ class SSHConnection(object):
rsa_key = paramiko.RSAKey.from_private_key_file(self.key_path)
try:
self.transport.connect(username=self.username, pkey=rsa_key)
except SSHException:
except SSHException, e:
self.transport.close()
raise SSHConnectionError(self.host +
": The svn key is not good for this server," +
" check if the hostname_erp5 is set to your wanted server")
raise SSHConnectionError(str(e))
else:
self.sftp = paramiko.SFTPClient.from_transport(self.transport)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment