Skip to content

Commit

Permalink
More detailed exception messages in rustc.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 8, 2024
1 parent 7374f4a commit 80595ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rustc.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
});
term.writeln("\x1B[93mExecuting\x1B[0m");
console.log(inst.exports);
try { w.start(inst); } catch(e) { term.writeln(e); }
try { w.start(inst); } catch(e) { term.writeln("Exception: " + e.message); term.writeln("backtrace:"); term.writeln(e.stack); throw e; }
term.writeln("\x1B[92mDone\x1B[0m");

console.log(fds);
Expand Down

0 comments on commit 80595ea

Please sign in to comment.