diff --git a/proxy/src/main/java/com/wavefront/agent/channel/ChannelUtils.java b/proxy/src/main/java/com/wavefront/agent/channel/ChannelUtils.java index 6bb9ea733..e26d92b0f 100644 --- a/proxy/src/main/java/com/wavefront/agent/channel/ChannelUtils.java +++ b/proxy/src/main/java/com/wavefront/agent/channel/ChannelUtils.java @@ -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(); }