incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r818011 - /sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java
Date Wed, 23 Sep 2009 09:16:19 GMT
Author: bdelacretaz
Date: Wed Sep 23 09:16:11 2009
New Revision: 818011

URL: http://svn.apache.org/viewvc?rev=818011&view=rev
Log:
More explicit Exception message

Modified:
    sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java

Modified: sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java?rev=818011&r1=818010&r2=818011&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java
(original)
+++ sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java
Wed Sep 23 09:16:11 2009
@@ -225,7 +225,8 @@
             // if this is an included request, sendError() would fail
             // as the response is already committed, in this case we throw an exception
             if ( isIncluded ) {
-                throw new ServletException("No renderer found for extension " + ext);
+                throw new ServletException("No renderer found for extension " + ext 
+                        + " while including " + request.getResource());
             }
             response.sendError(HttpServletResponse.SC_FORBIDDEN);
             return;



Mime
View raw message