From df77d9491ec310d75773fd145cdc52f2bf4ac1f7 Mon Sep 17 00:00:00 2001 From: t123yh Date: Mon, 28 Aug 2017 21:35:08 +0800 Subject: [PATCH] Add a message to standard judger. --- src/runner/judge.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runner/judge.ts b/src/runner/judge.ts index 1a06c71..cd3ded5 100644 --- a/src/runner/judge.ts +++ b/src/runner/judge.ts @@ -194,6 +194,7 @@ export async function judgeStandard(task: StandardRunTask) message = `Killed: ${signals[runResult.result.code]}`; status = TestcaseResultType.RuntimeError; } else if (runResult.result.status !== SandboxStatus.OK) { + message = "Warning: corrupt sandbox result " + util.inspect(runResult.result); status = TestcaseResultType.RuntimeError; } else { message = `Exited with return code ${runResult.result.code}`;