From 697a3b3a1e357c5a896e58555bdba532ce86a275 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sun, 18 Feb 2007 06:43:12 +0000 Subject: [PATCH] WW-1702 - fixed error handling in dispatcher git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@508883 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/struts2/dispatcher/Dispatcher.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java b/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java index 715e90c35..f0973889f 100644 --- a/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java +++ b/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java @@ -515,8 +515,7 @@ Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyExcepti LOG.error("Could not find action or result", e); sendError(request, response, context, HttpServletResponse.SC_NOT_FOUND, e); } catch (Exception e) { - LOG.error("Could not execute action", e); - sendError(request, response, context, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e); + throw new ServletException(e); } finally { UtilTimerStack.pop(timerKey); }