Optimize terminal error prompt

This commit is contained in:
bt.cn
2021-11-23 11:12:12 +08:00
parent 9b2a903313
commit b70ae586a5
+1 -1
View File
@@ -156,7 +156,7 @@ class ssh_terminal:
return returnMsg(False,'SSH_LOGIN_ERR2',(str(e)))
if e.find('Connection reset by peer') != -1:
self.debug(public.getMsg('SSH_LOGIN_ERR3'))
return returnMsg(False,'SSH_LOGIN_ERR3')
return returnMsg(False,public.getMsg('SSH_LOGIN_ERR3'))
if e.find('Error reading SSH protocol banner') != -1:
self.debug('SSH_LOGIN_ERR10')
return returnMsg(False,public.getMsg('SSH_LOGIN_ERR4',(str(e),)))