Skip to content

Commit

Permalink
branch-3.0: [opt](jni) Modify Exception Cause Formatting in JniUtil f…
Browse files Browse the repository at this point in the history
…or Better Readability apache#46437 (apache#46601)

Cherry-picked from apache#46437

Co-authored-by: zy-kkk <zhongyk10@gmail.com>
  • Loading branch information
github-actions[bot] and zy-kkk authored Jan 8, 2025
1 parent a2d9674 commit 08683cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static String throwableToString(Throwable t) {
// 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();
Expand Down

0 comments on commit 08683cb

Please sign in to comment.