Skip to content

Commit

Permalink
Only show error stack if it is not empty
Browse files Browse the repository at this point in the history
Parsing errors will not have a stack, and we don't want an empty
box in those cases.
  • Loading branch information
CendioOssman committed Mar 21, 2018
1 parent 3f9ca4f commit 7d60e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/error-handler.js
Expand Up @@ -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));
Expand Down

0 comments on commit 7d60e97

Please sign in to comment.