Author: sylvain Date: Tue Apr 12 09:00:14 2005 New Revision: 161067 URL: http://svn.apache.org/viewcvs?view=rev&rev=161067 Log: Propagate exception if there is no error-handler
Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java?view=diff&r1=161066&r2=161067 ============================================================================== --- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java (original) +++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java Tue Apr 12 09:00:14 2005 @@ -533,10 +533,15 @@ return; } } catch (ProcessingException e) { + // Log the original exception + getLogger().error("Failed to process error handler for exception", e); throw e; } catch (Exception e) { throw new ProcessingException("Failed to handle exception <" + ex + ">", e); } + } else { + // propagate exception if we have no error handler + throw ex; } }