aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-12-02 22:24:36 +0000
committerLouis Pilfold <louis@lpil.uk>2023-12-06 16:20:50 +0000
commit63d04b31f1b588fee80b41870e90dbc1f3c261bf (patch)
tree552beea9627ed5873294af69d69942f0912ad354
parent07e55691bc4c0f4db9891ee9cf1fad905e9e4ad8 (diff)
downloadtour-63d04b31f1b588fee80b41870e90dbc1f3c261bf.tar.gz
tour-63d04b31f1b588fee80b41870e90dbc1f3c261bf.zip
Log errors
-rw-r--r--static/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/index.js b/static/index.js
index d460c61..cff7805 100644
--- a/static/index.js
+++ b/static/index.js
@@ -60,6 +60,7 @@ async function compileEval(project, code) {
if (main) main();
replaceOutput(logged, "log");
} catch (error) {
+ console.error(error);
replaceOutput(error.toString(), "error");
}
for (const warning of project.takeWarnings()) {