From 54cd962e6005f18c37e36257f6b1e7754cc56861 Mon Sep 17 00:00:00 2001 From: Menci Date: Tue, 2 Apr 2019 10:50:36 +0800 Subject: [PATCH] Fix testcase's System Error message not shown --- libs/submissions_process.js | 1 + views/submission.ejs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/submissions_process.js b/libs/submissions_process.js index 910f70b..79f4642 100644 --- a/libs/submissions_process.js +++ b/libs/submissions_process.js @@ -66,6 +66,7 @@ const processOverallResult = (source, config) => { score: st.score, cases: st.cases.map(cs => ({ status: cs.status, + errorMessage: cs.errorMessage, result: cs.result && { type: cs.result.type, time: config.showUsage ? cs.result.time : undefined, diff --git a/views/submission.ejs b/views/submission.ejs index 23a6a4f..7fdffc2 100644 --- a/views/submission.ejs +++ b/views/submission.ejs @@ -85,7 +85,7 @@