I sent (or thought so) this a while ago, but it never showed.

Here's the patch that deals only with the exception problem.
Please let me know if you want the patch that factors out
the repetitive code.

thanks

mike

--- turbine/src/java/org/apache/turbine/Turbine.java    Wed Sep  6 13:05:33 2000
+++ Turbine.java        Wed Sep  6 13:09:44 2000
@@ -607,13 +607,23 @@
         {
             try
             {
+                String msg;
+                if (data != null)
+                {
+                   msg = "Exception: " + data.stackTrace;
+                }
+                else
+                {
+                   msg = "Exception: " + e;
+                }
+   
                 res.setContentType( mimeType );
                 res.setStatus ( 200 );
-                res.getWriter().print ("Exception: " + data.stackTrace);
+                res.getWriter().print (msg);
             }
             catch (Exception foob)
             {
-                // Ignore.
+                // ignore
             }
             org.apache.turbine.util.Log.error ( reallyScrewedNow );
         }


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to