Skip to content

Commit

Permalink
[#3034] fix(client): use %n format (#3183)
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
String.format() change \n to %n

### Why are the changes needed?

Fix: #3034 

### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
no

Co-authored-by: 韩望欣 <[email protected]>
  • Loading branch information
hanwxx and 韩望欣 authored Apr 25, 2024
1 parent 299e666 commit 10a3e3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private static String formatErrorMessage(ErrorResponse errorResponse) {
if (stack.isEmpty()) {
return message;
} else {
return String.format("%s\n%s", message, stack);
return String.format("%s%n%s", message, stack);
}
}

Expand Down

0 comments on commit 10a3e3e

Please sign in to comment.