mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 16:18:05 +03:00
Use plain server message.
This commit is contained in:
@@ -525,7 +525,7 @@ public final class TransportImpl
|
||||
final DisconnectReason code = DisconnectReason.fromInt(buf.readUInt32AsInt());
|
||||
final String message = buf.readString();
|
||||
log.info("Received SSH_MSG_DISCONNECT (reason={}, msg={})", code, message);
|
||||
throw new TransportException(code, "Disconnected; server said: " + message);
|
||||
throw new TransportException(code, message);
|
||||
} catch (Buffer.BufferException be) {
|
||||
throw new TransportException(be);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user