From 695fcb1695bed7e7ab4b379e0fbe77e3a1cac03a Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Tue, 17 Mar 2009 19:46:28 +0000
Subject: [PATCH] Raise using the original Message .

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26084 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/SSHConnection.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/product/ERP5Type/SSHConnection.py b/product/ERP5Type/SSHConnection.py
index 22420c407c..600e66715d 100644
--- a/product/ERP5Type/SSHConnection.py
+++ b/product/ERP5Type/SSHConnection.py
@@ -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)
 
-- 
2.30.9