Browse Source

Add a message to standard judger.

master
t123yh 7 years ago
parent
commit
df77d9491e
  1. 1
      src/runner/judge.ts

1
src/runner/judge.ts

@ -194,6 +194,7 @@ export async function judgeStandard(task: StandardRunTask)
message = `Killed: ${signals[runResult.result.code]}`; message = `Killed: ${signals[runResult.result.code]}`;
status = TestcaseResultType.RuntimeError; status = TestcaseResultType.RuntimeError;
} else if (runResult.result.status !== SandboxStatus.OK) { } else if (runResult.result.status !== SandboxStatus.OK) {
message = "Warning: corrupt sandbox result " + util.inspect(runResult.result);
status = TestcaseResultType.RuntimeError; status = TestcaseResultType.RuntimeError;
} else { } else {
message = `Exited with return code ${runResult.result.code}`; message = `Exited with return code ${runResult.result.code}`;

Loading…
Cancel
Save