Try to generate a minimal HTML page in sendError()
This commit is contained in:
parent
479a70509d
commit
51d814d56f
1 changed files with 7 additions and 0 deletions
|
@ -351,7 +351,14 @@ public abstract class AbstractServletClient extends HttpServlet {
|
|||
|
||||
Writer writer = response.getWriter();
|
||||
|
||||
writer.write("<html><body><h3>");
|
||||
writer.write("Error in application ");
|
||||
try {
|
||||
writer.write(getApplication().getName());
|
||||
} catch (Exception besafe) {}
|
||||
writer.write("</h3>");
|
||||
writer.write(message);
|
||||
writer.write("</body></html>");
|
||||
writer.flush();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue