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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new f2419c49a75 branch-2.1: [opt](jni) Modify Exception Cause Formatting 
in JniUtil for Better Readability #46437 (#46602)
f2419c49a75 is described below

commit f2419c49a7580385d757a6c57ed46b68468a8371
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jan 8 22:30:19 2025 +0800

    branch-2.1: [opt](jni) Modify Exception Cause Formatting in JniUtil for 
Better Readability #46437 (#46602)
    
    Cherry-picked from #46437
    
    Co-authored-by: zy-kkk <zhongy...@gmail.com>
---
 .../src/main/java/org/apache/doris/common/jni/utils/JniUtil.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/be-java-extensions/java-common/src/main/java/org/apache/doris/common/jni/utils/JniUtil.java
 
b/fe/be-java-extensions/java-common/src/main/java/org/apache/doris/common/jni/utils/JniUtil.java
index 1a91df84be6..86d659a09f8 100644
--- 
a/fe/be-java-extensions/java-common/src/main/java/org/apache/doris/common/jni/utils/JniUtil.java
+++ 
b/fe/be-java-extensions/java-common/src/main/java/org/apache/doris/common/jni/utils/JniUtil.java
@@ -72,7 +72,7 @@ public class JniUtil {
         // Follow the chain of exception causes and print them as well.
         Throwable cause = t;
         while ((cause = cause.getCause()) != null) {
-            output.write(String.format("\nCAUSED BY: %s: %s",
+            output.write(String.format(" | CAUSED BY: %s: %s",
                     cause.getClass().getSimpleName(), cause.getMessage()));
         }
         return output.toString();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to