Post-import edits

This commit is contained in:
Jeff Forcier 2012-11-05 17:29:32 -08:00
parent 5d15467ad4
commit 394ab2699e
1 changed files with 6 additions and 4 deletions

View File

@ -114,17 +114,19 @@ class BadHostKeyException (SSHException):
self.expected_key = expected_key self.expected_key = expected_key
class BadProxyCommand (SSHException): class ProxyCommandFailure (SSHException):
""" """
The "ProxyCommand" found in the .ssh/config file returned an error. The "ProxyCommand" found in the .ssh/config file returned an error.
@ivar command: The command line that is generating this exception @ivar command: The command line that is generating this exception.
@type command: str @type command: str
@ivar error: The error captured from the proxy command output @ivar error: The error captured from the proxy command output.
@type error: str @type error: str
""" """
def __init__(self, command, error): def __init__(self, command, error):
SSHException.__init__(self, SSHException.__init__(self,
'"ProxyCommand (%s)" returned non-zero exit status: %s' % ( '"ProxyCommand (%s)" returned non-zero exit status: %s' % (
command, error)) command, error
)
)
self.error = error self.error = error