NIHVIVO-1218 When an ErrorResponseValues is returned, create a standard system error page.
This commit is contained in:
parent
49e4badda7
commit
2464113907
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
|
||||||
protected void doException(VitroRequest vreq, HttpServletResponse response, ResponseValues values) {
|
protected void doException(VitroRequest vreq, HttpServletResponse response, ResponseValues values) {
|
||||||
// Log the error, and display an error message on the page.
|
// Log the error, and display an error message on the page.
|
||||||
log.error(values.getException(), values.getException());
|
log.error(values.getException(), values.getException());
|
||||||
TemplateResponseValues trv = new TemplateResponseValues(values.getTemplateName(), values.getMap());
|
TemplateResponseValues trv = new TemplateResponseValues(Template.STANDARD_ERROR.toString());
|
||||||
doTemplate(vreq, response, trv);
|
doTemplate(vreq, response, trv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue