luehe 2004/05/12 15:51:21
Modified: jasper2/src/share/org/apache/jasper JspC.java
Log:
More on Bugzilla 28604 ("JspC should not display the whole stack trace
of errors")
Revision Changes Path
1.74 +6 -2
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java
Index: JspC.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- JspC.java 12 May 2004 17:45:57 -0000 1.73
+++ JspC.java 12 May 2004 22:51:21 -0000 1.74
@@ -194,8 +194,7 @@
jspc.execute();
}
} catch (JasperException je) {
- System.err.print("error:");
- je.printStackTrace();
+ System.err.println(je);
//System.err.println(je.getMessage());
if (die != NO_DIE_LEVEL) {
System.exit(die);
@@ -738,6 +737,11 @@
while (rootCause instanceof JasperException
&& ((JasperException) rootCause).getRootCause() != null) {
rootCause = ((JasperException) rootCause).getRootCause();
+ }
+ if (rootCause != je) {
+ log.error(Localizer.getMessage("jspc.error.generalException",
+ file),
+ rootCause);
}
throw je;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]