Skip to content

Commit

Permalink
Fix log parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikkel Hagen committed Nov 1, 2023
1 parent 3e17868 commit 1d99cd1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,11 @@ public static HttpResponse makeResponse(
public static String errorMessageWithRootCause(@Nonnull final Throwable e) {
StringBuilder msg = new StringBuilder();
final Throwable rootCause = Throwables.getRootCause(e);
msg.append("reason: \"");
msg.append("reason: ");
msg.append(e.getMessage());
msg.append("\"");
if (rootCause != null && rootCause != e && rootCause.getMessage() != null) {
msg.append(", root cause: \"");
msg.append(", root cause: ");
msg.append(rootCause.getMessage());
msg.append("\"");
}
return msg.toString();
}
Expand Down

0 comments on commit 1d99cd1

Please sign in to comment.