diff options
author | Louis Pilfold <louis@lpil.uk> | 2024-01-04 20:06:40 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-01-04 20:06:40 +0000 |
commit | 09a8a96664fadbc2933024910b95526f7d66843f (patch) | |
tree | e079fe2f9979af4fb4e22b18652ae3a3d876ffa3 /static/index.js | |
parent | 51a1fcbd0e42b25238877d3ad05d1690e8bc1553 (diff) | |
download | tour-09a8a96664fadbc2933024910b95526f7d66843f.tar.gz tour-09a8a96664fadbc2933024910b95526f7d66843f.zip |
More content!
Diffstat (limited to 'static/index.js')
-rw-r--r-- | static/index.js | 3 |
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"); |