incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r792209 - /sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/RewriterResponse.java
Date Wed, 08 Jul 2009 16:11:04 GMT
Author: cziegeler
Date: Wed Jul  8 16:11:04 2009
New Revision: 792209

URL: http://svn.apache.org/viewvc?rev=792209&view=rev
Log:
Throw exception if pipeline could not be established.

Modified:
    sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/RewriterResponse.java

Modified: sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/RewriterResponse.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/RewriterResponse.java?rev=792209&r1=792208&r2=792209&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/RewriterResponse.java
(original)
+++ sling/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/RewriterResponse.java
Wed Jul  8 16:11:04 2009
@@ -22,6 +22,7 @@
 import java.util.Iterator;
 import java.util.List;
 
+import org.apache.sling.api.SlingException;
 import org.apache.sling.api.SlingHttpServletRequest;
 import org.apache.sling.api.SlingHttpServletResponse;
 import org.apache.sling.api.wrappers.SlingHttpServletResponseWrapper;
@@ -163,9 +164,7 @@
                     }
                 }
             } catch (IOException e) {
-                // we ignore this here - this will be handled, when getWriter is called
-                // again
-                return null;
+                throw new SlingException("Unable to setup pipeline: " + e.getMessage(), e);
             }
             if ( this.processor != null ) {
                 @SuppressWarnings("unchecked")



Mime
View raw message