Author: sylvain
Date: Tue Apr 12 13:11:11 2005
New Revision: 161109

URL: http://svn.apache.org/viewcvs?view=rev&rev=161109
Log:
Log the original exception if error-handler fails

Modified:
    
cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java

Modified: 
cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
URL: 
http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java?view=diff&r1=161108&r2=161109
==============================================================================
--- 
cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
 (original)
+++ 
cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
 Tue Apr 12 13:11:11 2005
@@ -494,10 +494,11 @@
                 }
             } catch (ProcessingException e) {
                 // Log the original exception
-                getLogger().error("Failed to process error handler for 
exception", e);
+                getLogger().error("Failed to process error handler for 
exception", ex);
                 throw e;
             } catch (Exception e) {
-                throw new ProcessingException("Failed to handle exception <" + 
ex + ">", e);
+                getLogger().error("Failed to process error handler for 
exception", ex);
+                throw new ProcessingException("Failed to handle exception <" + 
ex.getMessage() + ">", e);
             }
         } else {
             // propagate exception if we have no error handler


Reply via email to