aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-01-04 20:06:40 +0000
committerLouis Pilfold <louis@lpil.uk>2024-01-04 20:06:40 +0000
commit09a8a96664fadbc2933024910b95526f7d66843f (patch)
treee079fe2f9979af4fb4e22b18652ae3a3d876ffa3 /static/index.js
parent51a1fcbd0e42b25238877d3ad05d1690e8bc1553 (diff)
downloadtour-09a8a96664fadbc2933024910b95526f7d66843f.tar.gz
tour-09a8a96664fadbc2933024910b95526f7d66843f.zip
More content!
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/index.js b/static/index.js
index 094011b..cfe026c 100644
--- a/static/index.js
+++ b/static/index.js
@@ -61,7 +61,8 @@ async function compileEval(project, code) {
replaceOutput(logged, "log");
} catch (error) {
console.error(error);
- replaceOutput(error.toString(), "error");
+ replaceOutput(logged, "log");
+ appendOutput(error.toString(), "error");
}
for (const warning of project.takeWarnings()) {
appendOutput(warning, "warning");