Skip to content

Commit

Permalink
Increases the maintainability
Browse files Browse the repository at this point in the history
Co-authored-by: Sascha Bieberstein <sabieber@users.noreply.github.com>
  • Loading branch information
mko-sci and sabieber authored May 16, 2024
1 parent 173b441 commit 3eeba14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/sirius/kernel/health/Exceptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public static Throwable getRootCause(@Nullable Throwable throwable) {
}

/**
* Generates a stack trace for the given throwable without the error message.
* Generates a stack trace for the given throwable and its causes without the error messages.
*
* @param throwable the throwable to generate the stack trace for
* @return a string representation of the stack trace without the error message
Expand Down Expand Up @@ -529,6 +529,6 @@ public static String printStackTraceWithoutErrorMessage(Throwable throwable) {
*/
private static void appendStackTrace(StringBuilder stringBuilder, Throwable throwable) {
Arrays.stream(throwable.getStackTrace())
.forEach(stackTraceElement -> stringBuilder.append("\tat ").append(stackTraceElement).append("\n"));
.forEach(stackTraceElement -> stringBuilder.append("\t").append("at ").append(stackTraceElement).append("\n"));
}
}

0 comments on commit 3eeba14

Please sign in to comment.