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 5b91cecdeb [IOTDB-4680] fix error msg "%s" in load statement  (#7645)
5b91cecdeb is described below

commit 5b91cecdebbd18367d0244f1ff6140eaed7c4c6b
Author: yschengzi <[email protected]>
AuthorDate: Tue Oct 18 18:26:50 2022 +0800

    [IOTDB-4680] fix error msg "%s" in load statement  (#7645)
---
 .../apache/iotdb/db/mpp/plan/statement/crud/LoadTsFileStatement.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/crud/LoadTsFileStatement.java
 
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/crud/LoadTsFileStatement.java
index efa386c241..0b076b00be 100644
--- 
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/crud/LoadTsFileStatement.java
+++ 
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/crud/LoadTsFileStatement.java
@@ -59,7 +59,9 @@ public class LoadTsFileStatement extends Statement {
     } else {
       if (file.listFiles() == null) {
         throw new FileNotFoundException(
-            "Can not find %s on this machine, notice that load can only handle 
files on this machine.");
+            String.format(
+                "Can not find %s on this machine, notice that load can only 
handle files on this machine.",
+                filePath));
       }
       findAllTsFile(file);
     }

Reply via email to