From 09a8a96664fadbc2933024910b95526f7d66843f Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 4 Jan 2024 20:06:40 +0000 Subject: More content! --- static/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'static/index.js') 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"); -- cgit v1.2.3