From 06d3df40f6dfa50467b91153225336e26a178968 Mon Sep 17 00:00:00 2001 From: Menci Date: Wed, 14 Dec 2016 18:56:24 +0800 Subject: [PATCH] Correct the error message --- modules/contest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/contest.js b/modules/contest.js index 4fd1a85..2863cfb 100644 --- a/modules/contest.js +++ b/modules/contest.js @@ -206,7 +206,7 @@ app.get('/contest/:id/:pid', async (req, res) => { try { let contest_id = parseInt(req.params.id); let contest = await Contest.fromID(contest_id); - if (!await contest.isRunning()) throw 'The contest has ended.' + if (!await contest.isRunning()) throw 'The contest has ended or not started.' let problems_id = await contest.getProblems();