提交 27e9a978 authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved error message.

上级 31bdf7ec
...@@ -70,8 +70,7 @@ public class TcpServerThread implements Runnable { ...@@ -70,8 +70,7 @@ public class TcpServerThread implements Runnable {
} }
clientVersion = transfer.readInt(); clientVersion = transfer.readInt();
if (clientVersion < Constants.TCP_PROTOCOL_VERSION) { if (clientVersion < Constants.TCP_PROTOCOL_VERSION) {
throw DbException.get(ErrorCode.DRIVER_VERSION_ERROR_2, "current client version: " + throw DbException.get(ErrorCode.DRIVER_VERSION_ERROR_2, "" + clientVersion, "" + Constants.TCP_PROTOCOL_VERSION);
clientVersion + "; minimum version: " + Constants.TCP_PROTOCOL_VERSION);
} }
// max version (currently not used) // max version (currently not used)
transfer.readInt(); transfer.readInt();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论