fix error generating error message in rendering

This commit is contained in:
Grahame Grieve 2020-09-09 11:48:51 +10:00
parent b9bef4c3c8
commit 4616da8a82
1 changed files with 3 additions and 1 deletions

View File

@ -1025,7 +1025,9 @@ public class DataRenderer extends Renderer {
public XhtmlNode makeExceptionXhtml(Exception e, String function) {
XhtmlNode xn;
xn = new XhtmlNode(NodeType.Element, "div");
xn.para().b().tx("Exception "+function+": "+e.getMessage()).addComment(getStackTrace(e));
XhtmlNode p = xn.para();
p.b().tx("Exception "+function+": "+e.getMessage());
p.addComment(getStackTrace(e));
return xn;
}