[Bugfix] fixed exception formatting bug in StringHelper

This commit is contained in:
Robert von Burg 2015-03-15 11:02:57 +01:00
parent 638cebe01e
commit 8e75a7651a
1 changed files with 2 additions and 3 deletions

View File

@ -589,8 +589,6 @@ public class StringHelper {
public static String formatExceptionMessage(Throwable t) {
StringBuilder sb = new StringBuilder();
sb.append(t.getMessage());
sb.append("\n");
appendCause(sb, t);
return sb.toString();
}
@ -600,9 +598,10 @@ public class StringHelper {
if (cause == null)
return;
sb.append("\n");
sb.append("cause:\n");
sb.append(cause.getMessage());
sb.append("\n");
if (cause.getCause() != null)
appendCause(sb, cause.getCause());