diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-09-05 10:09:18 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-09-05 10:09:18 -0400 |
| commit | cea2d535ba34acc17568004be9f87a145fd64616 (patch) | |
| tree | f0191b36c731e0f6081dfcaa65ac379652ee7995 /docs/repl.js | |
| parent | 78c26551d039c1cb07521c6601eb2b389a7d9644 (diff) | |
Distinguish compiler, runtime, and assertion errors
Diffstat (limited to 'docs/repl.js')
| -rw-r--r-- | docs/repl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/repl.js b/docs/repl.js index 2dbcc085..8ee1370b 100644 --- a/docs/repl.js +++ b/docs/repl.js @@ -16,7 +16,7 @@ let repl = ()=>{ } catch(e) { //if (console&&console.error) console.error(e.stack); doc.rslt.classList.add('err'); - doc.rslt.textContent=e; + doc.rslt.textContent=e.message||'Error'; } }, 0); } |
