Skip to content

Commit 84cd28f

Browse files
committed
ssh: 掉线兜底文案统一为 connection lost
1 parent 853e8f3 commit 84cd28f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎libterminal-ssh/src/main/cpp/sshterm.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ void* io_writer(void* arg) {
239239
err = e;
240240
}
241241
}
242-
note_error(h, err.empty() ? "SSH channel read failed" : err);
242+
// libssh 可能只返回错误码而不留会话错误文本,兜底用连接丢失措辞。
243+
note_error(h, err.empty() ? "SSH connection lost" : err);
243244
break;
244245
}
245246
if (n == 0) {

0 commit comments

Comments
 (0)