Skip to content

Commit 3829eab

Browse files
author
chengyitian
committed
AJ-656: modify response error info;
1 parent 41fd780 commit 3829eab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/com/xxdb/DBConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@ private Entity run(String script, String scriptType, ProgressListener listener,
465465

466466
if (!header.equals("OK")){
467467
if (scriptType == "script")
468-
throw new IOException(hostName_+":"+port_+" Server response: '" + header + "' script: '" + script + "'");
468+
throw new IOException(hostName_+":"+port_+" Server response: " + header + ". script: " + script + "");
469469
else
470-
throw new IOException(hostName_+":"+port_+" Server response: '" + header + "' " + scriptType + ": '" + script + "'");
470+
throw new IOException(hostName_+":"+port_+" Server response: " + header + ". " + scriptType + ": " + script + "");
471471
}
472472

473473
if (numObject == 0){

src/com/xxdb/streaming/client/AbstractClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ void checkServerVersion(String host, int port) throws IOException {
578578
int v1 = Integer.parseInt(_[1]);
579579
int v2 = Integer.parseInt(_[2]);
580580

581-
if (v0 ==3 || (v0 == 2 && v1 == 0 && v2 >= 9) || (v0 == 2 && v1 == 10) || (v0 == 3 && v1 == 0 && v2 >= 0)) {
581+
if ((v0 == 2 && v1 == 0 && v2 >= 9) || (v0 == 2 && v1 == 10) || (v0 == 3 && v1 == 0 && v2 >= 0)) {
582582
//server only support reverse connection
583583
this.listeningPort = 0;
584584
} else {

0 commit comments

Comments
 (0)