Print stack visually on error
This commit is contained in:
parent
c25d424194
commit
94e4b52615
2 changed files with 7 additions and 0 deletions
|
@ -406,6 +406,8 @@
|
|||
</div>
|
||||
<div class="col text-center">
|
||||
<div id="summary-box"></div>
|
||||
<div id="err-box"></div>
|
||||
<div id="stack-box"></div>
|
||||
<div id="str-warnings"></div>
|
||||
<div id="dex-warnings"></div>
|
||||
<div id="int-warnings"></div>
|
||||
|
|
|
@ -443,6 +443,11 @@ function init() {
|
|||
builder_graph_init();
|
||||
}
|
||||
|
||||
window.onerror = function(message, source, lineno, colno, error) {
|
||||
document.getElementById('err-box').textContent = message;
|
||||
document.getElementById('stack-box').textContent = error.stack;
|
||||
};
|
||||
|
||||
(async function() {
|
||||
let load_promises = [ load_init(), load_ing_init(), load_tome_init() ];
|
||||
await Promise.all(load_promises);
|
||||
|
|
Loading…
Reference in a new issue