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:
parent
3f9ca4f5dc
commit
7d60e97cc9
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue