[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-115]

fix CONNECTION_FAILED_CODE
oops, fix typo in channel request failed.
This commit is contained in:
Robey Pointer 2004-11-25 19:39:34 +00:00
parent 13f818f04f
commit df63dc4154
1 changed files with 2 additions and 2 deletions

View File

@ -1426,8 +1426,8 @@ class BaseTransport (threading.Thread):
reason = m.get_int() reason = m.get_int()
reason_str = m.get_string() reason_str = m.get_string()
lang = m.get_string() lang = m.get_string()
if _CONNECTION_FAILED_CODE.has_key(reason): if CONNECTION_FAILED_CODE.has_key(reason):
reason_text = _CONNECTION_FAILED_CODE[reason] reason_text = CONNECTION_FAILED_CODE[reason]
else: else:
reason_text = '(unknown code)' reason_text = '(unknown code)'
self._log(INFO, 'Secsh channel %d open FAILED: %s: %s' % (chanid, reason_str, reason_text)) self._log(INFO, 'Secsh channel %d open FAILED: %s: %s' % (chanid, reason_str, reason_text))