git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@496373
13f79535-47bb-0310-9956-
ffa450edef68
if ((statusCode < 400) || (response.getContentCount() > 0))
return;
- Throwable rootCause = null;
-
- if (throwable != null) {
-
- if (throwable instanceof ServletException)
- rootCause = ((ServletException) throwable).getRootCause();
-
- }
-
String message = RequestUtil.filter(response.getMessage());
if (message == null)
message = "";
sb.append("</pre></p>");
int loops = 0;
+ Throwable rootCause = throwable.getCause();
while (rootCause != null && (loops < 10)) {
stackTrace = getPartialServletStackTrace(rootCause);
sb.append("<p><b>");