sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1788402 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java
Date Fri, 24 Mar 2017 10:37:20 GMT
Author: kwin
Date: Fri Mar 24 10:37:20 2017
New Revision: 1788402

URL: http://svn.apache.org/viewvc?rev=1788402&view=rev
Log:
SLING-6703 do not hide underlying exception in response (basically reverts SLING-4415)

Modified:
    sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java

Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java?rev=1788402&r1=1788401&r2=1788402&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java
(original)
+++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java
Fri Mar 24 10:37:20 2017
@@ -22,8 +22,6 @@ import java.util.Map;
 
 import javax.servlet.http.HttpServletResponse;
 
-import org.apache.sling.api.SlingException;
-
 /**
  * The <code>AbstractPostResponse</code> class provides a basic implementation
  * of the {@link PostResponse} interface maintaining properties to be
@@ -218,7 +216,7 @@ public abstract class AbstractPostRespon
     }
 
     public void setError(Throwable error) {
-        setProperty(PN_ERROR, new SlingException("Exception during response processing.",
null));
+        setProperty(PN_ERROR, error);
     }
 
     /**



Mime
View raw message