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();