Skip to content

Commit

Permalink
feat: display output even if the execution ends with sigkill
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesx00 committed Dec 23, 2024
1 parent 5bfe6f8 commit bebbbaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/js/lesson.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bebbbaa

Please sign in to comment.