Use plain server message.

This commit is contained in:
David Kocher
2014-05-16 15:33:24 +02:00
parent a8d2ea2028
commit 9297338195

View File

@@ -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);
}