diff --git a/integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java b/integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java index 317ec218fc617..18973720b3e56 100644 --- a/integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java @@ -77,7 +77,7 @@ public void test() throws IOException { protected void testOnWindows() throws IOException { final String[] output = { - "Error: Connection Error, please check whether the network is available or the server has started. Host is 127.0.0.1, port is 6668." + "Error: Connection Error, please check whether the network is available or the server has started." }; ProcessBuilder builder = new ProcessBuilder( @@ -121,7 +121,7 @@ protected void testOnWindows() throws IOException { protected void testOnUnix() throws IOException { final String[] output = { - "Error: Connection Error, please check whether the network is available or the server has started. Host is 127.0.0.1, port is 6668." + "Error: Connection Error, please check whether the network is available or the server has started." }; ProcessBuilder builder = new ProcessBuilder( diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java index 1f8a354482bd5..0a9af5a2da7eb 100644 --- a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java +++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java @@ -210,9 +210,7 @@ private static void receiveCommands(CliContext ctx) throws TException { } } } catch (SQLException e) { - ctx.getErr() - .printf( - "%s: %s Host is %s, port is %s.%n", IOTDB_ERROR_PREFIX, e.getMessage(), host, port); + ctx.getErr().printf("%s: %s%n", IOTDB_ERROR_PREFIX, e.getMessage()); ctx.exit(CODE_ERROR); } }