diff --git a/public/js/lesson.js b/public/js/lesson.js index af1977b..712b91e 100644 --- a/public/js/lesson.js +++ b/public/js/lesson.js @@ -274,6 +274,9 @@ require(["vs/editor/editor.main"], function () { let outputText = ""; if (output.run.signal === "SIGKILL") { outputText = "Code execution failed"; + if (output.run.stdout !== "") { + outputText += ` with output: \n\n${output.run.stdout}`; + } } else { outputText = output.run.stdout + output.run.stderr; }