Skip to content

Commit 9e3d22e

Browse files
committed
Merge branch '2.3.x' into 2.4.x
2 parents ec56293 + 5068b58 commit 9e3d22e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

grails-web/src/main/groovy/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,17 @@ public Locale getLocale() {
365365
}
366366
}
367367
catch (ModelAndViewDefiningException ex) {
368+
// Exceptions inside includes should propogate up so the original dispatcher handles the exception
369+
if(WebUtils.isIncludeRequest(request)) throw ex;
368370
handlerException = ex;
369371
if (logger.isDebugEnabled()) {
370372
logger.debug("ModelAndViewDefiningException encountered", ex);
371373
}
372374
mv = ex.getModelAndView();
373375
}
374376
catch (Exception ex) {
377+
// Exceptions inside includes should propogate up so the original dispatcher handles the exception
378+
if(WebUtils.isIncludeRequest(request)) throw ex;
375379
handlerException = ex;
376380
Object handler = mappedHandler == null ? null : mappedHandler.getHandler();
377381
mv = processHandlerException(request, response, handler, ex);

0 commit comments

Comments
 (0)