Skip to content

Commit

Permalink
Merge ad9a259 into 1af8db2
Browse files Browse the repository at this point in the history
  • Loading branch information
Loic Dachary committed Sep 25, 2014
2 parents 1af8db2 + ad9a259 commit 802fb8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion paramiko/ssh_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ class BadHostKeyException (SSHException):
.. versionadded:: 1.6
"""
def __init__(self, hostname, got_key, expected_key):
SSHException.__init__(self, 'Host key for server %s does not match!' % hostname)
SSHException.__init__(self,
'Host key for server %s does not match : got %s expected %s' % (
hostname,
got_key.get_base64(),
expected_key.get_base64()))
self.hostname = hostname
self.key = got_key
self.expected_key = expected_key
Expand Down

0 comments on commit 802fb8f

Please sign in to comment.