Print stack trace when debug mode is on.

This commit is contained in:
hns 2003-05-19 16:32:13 +00:00
parent 523938da67
commit d46b42b9c6

View file

@ -16,6 +16,7 @@
/* Portierung von helma.asp.AspClient auf Servlets */
/* Author: Raphael Spannocchi Datum: 27.11.1998 */
package helma.servlet;
import helma.framework.*;
@ -292,6 +293,7 @@ public abstract class AbstractServletClient extends HttpServlet {
if (debug) {
sendError(response, response.SC_INTERNAL_SERVER_ERROR,
"Error in request handler:" + x);
x.printStackTrace();
} else {
sendError(response, response.SC_INTERNAL_SERVER_ERROR,
"The server encountered an error while processing your request. " +