mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 04:22:16 +00:00
sendError(Exception…) should set the exception attribute on the response, since error.jelly handles this nicely.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user