Commits

Anonymous committed 756e435

Improper error handling in serviceAction method
WW-291

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2823573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/dispatcher/DispatcherUtils.java

             LOG.error("Could not find action", e);
             sendError(request, response, context, HttpServletResponse.SC_NOT_FOUND, e);
         } catch (Exception e) {
-            String msg = "Could not execute action";
-            LOG.error(msg, e);
-            sendError(request, response, context, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e);
+            throw new ServletException(e);
         }
     }