sendError(Exception…) should set the exception attribute on the response, since error.jelly handles this nicely.

This commit is contained in:
Jesse Glick committed 2014-09-25 14:06:51 -04:00
1 parent d54bc061b1
commit 2751bf4ac5
1 file changed
+1
@@ -47,6 +47,7 @@ public abstract class AbstractModelObject implements SearchableModelObject {
* Displays the error in a page.
*/
protected final void sendError(Exception e, StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException {
req.setAttribute("exception", e);
sendError(e.getMessage(),req,rsp);
}