From 80595ea03d8f56017452739c7c1b029d64cae454 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Mon, 8 Apr 2024 19:40:20 +0200 Subject: [PATCH] More detailed exception messages in rustc.html --- examples/rustc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rustc.html b/examples/rustc.html index 192aa99..e760820 100644 --- a/examples/rustc.html +++ b/examples/rustc.html @@ -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);