Print stack trace when debug mode is on.
This commit is contained in:
parent
523938da67
commit
d46b42b9c6
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
/* Portierung von helma.asp.AspClient auf Servlets */
|
/* Portierung von helma.asp.AspClient auf Servlets */
|
||||||
/* Author: Raphael Spannocchi Datum: 27.11.1998 */
|
/* Author: Raphael Spannocchi Datum: 27.11.1998 */
|
||||||
|
|
||||||
package helma.servlet;
|
package helma.servlet;
|
||||||
|
|
||||||
import helma.framework.*;
|
import helma.framework.*;
|
||||||
|
@ -292,6 +293,7 @@ public abstract class AbstractServletClient extends HttpServlet {
|
||||||
if (debug) {
|
if (debug) {
|
||||||
sendError(response, response.SC_INTERNAL_SERVER_ERROR,
|
sendError(response, response.SC_INTERNAL_SERVER_ERROR,
|
||||||
"Error in request handler:" + x);
|
"Error in request handler:" + x);
|
||||||
|
x.printStackTrace();
|
||||||
} else {
|
} else {
|
||||||
sendError(response, response.SC_INTERNAL_SERVER_ERROR,
|
sendError(response, response.SC_INTERNAL_SERVER_ERROR,
|
||||||
"The server encountered an error while processing your request. " +
|
"The server encountered an error while processing your request. " +
|
||||||
|
|
Loading…
Add table
Reference in a new issue