aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
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");