Merge pull request #559 from evandroforks/show_full_javascript_stacktrace

Set to show the JavaScript exception message and stacktrace
This commit is contained in:
Damien Elmes 2020-04-15 18:51:16 +10:00 committed by GitHub
commit dbedeef98d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,11 @@ function _updateQA(html, fadeTime, onupdate, onshown) {
try {
qa.html(html);
} catch (err) {
qa.text("Invalid HTML on card: " + err);
qa.html(
"Invalid HTML on card: " +
err +
("\n" + err.stack).replace(/\n/g, "<br />")
);
}
_runHook(onUpdateHook);