Only show error stack if it is not empty

Parsing errors will not have a stack, and we don't want an empty
box in those cases.
This commit is contained in:
Pierre Ossman 2018-03-21 15:33:14 +01:00
parent 3f9ca4f5dc
commit 7d60e97cc9
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@
msg.appendChild(div);
}
if (err && (err.stack !== undefined)) {
if (err && err.stack) {
div = document.createElement("div");
div.className = 'noVNC_stack';
div.appendChild(document.createTextNode(err.stack));