This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 9041e6013f8 [IOTDB-17191] CLI: add space after error prefix in three 
messages (#17192)
9041e6013f8 is described below

commit 9041e6013f872d9e7571fbc0e59a36363938375c
Author: Talha Amjad <[email protected]>
AuthorDate: Tue Feb 24 12:43:53 2026 +0500

    [IOTDB-17191] CLI: add space after error prefix in three messages (#17192)
---
 iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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 396c2867688..d1bbd6165f6 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
@@ -91,10 +91,11 @@ public class Cli extends AbstractCli {
       port = checkRequiredArg(ctx, PORT_ARGS, PORT_NAME, commandLine, false, 
port);
       username = checkRequiredArg(ctx, USERNAME_ARGS, USERNAME_NAME, 
commandLine, true, null);
     } catch (ArgsErrorException e) {
-      ctx.getPrinter().println(IOTDB_ERROR_PREFIX + "Input params error 
because" + e.getMessage());
+      ctx.getPrinter()
+          .println(IOTDB_ERROR_PREFIX + ": Input params error because " + 
e.getMessage());
       ctx.exit(CODE_ERROR);
     } catch (Exception e) {
-      ctx.getPrinter().println(IOTDB_ERROR_PREFIX + "Exit cli with error " + 
e.getMessage());
+      ctx.getPrinter().println(IOTDB_ERROR_PREFIX + ": Exit cli with error: " 
+ e.getMessage());
       ctx.exit(CODE_ERROR);
     }
     LineReader lineReader = JlineUtils.getLineReader(ctx, username, host, 
port);
@@ -188,7 +189,8 @@ public class Cli extends AbstractCli {
       processCommand(ctx, execute, connection);
       ctx.exit(lastProcessStatus);
     } catch (SQLException e) {
-      ctx.getPrinter().println(IOTDB_ERROR_PREFIX + "Can't execute sql 
because" + e.getMessage());
+      ctx.getPrinter()
+          .println(IOTDB_ERROR_PREFIX + ": Can't execute sql because " + 
e.getMessage());
       ctx.exit(CODE_ERROR);
     }
   }

Reply via email to