From f7ec49324b568fb415b24de0b4d6c0cc980ba4f4 Mon Sep 17 00:00:00 2001 From: Tanuja Joshi <49224134+tanujajoshi1@users.noreply.github.com> Date: Wed, 3 Jun 2020 18:25:56 +0530 Subject: [PATCH] modified error message in api.js --- routes/api.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/routes/api.js b/routes/api.js index 6e0ddbb..f061dc0 100644 --- a/routes/api.js +++ b/routes/api.js @@ -24,7 +24,7 @@ route.get('/claims', (req, res) => { }) .catch(err => { console.log(err) - res.status(500).send('Sorry. Could not get the claims right now.') + res.status(500).send('Sorry! Could not get the claims right now.') }) }) @@ -35,7 +35,7 @@ route.get('/claims/:id/delete', auth.adminOnly, (req, res) => { }) .catch(err => { console.log(err) - res.status(500).send('Sorry. Could not delete the claim right now.') + res.status(500).send('Sorry! Could not delete the claim right now.') }) }) @@ -47,7 +47,7 @@ route.get('/claims/:id/update', auth.adminOnly, (req, res) => { }) .catch(err => { console.log(err) - res.status(500).send('Sorry. Could not update the claim right now.') + res.status(500).send('Sorry! Could not update the claim right now.') }) }) @@ -61,10 +61,10 @@ route.post('/claims/add', auth.ensureLoggedInGithub, (req, res) => { } if (Date.now() > BOSS_END_DATE.getTime()) { - return res.send("Sorry. Boss has ended, can't add claim from now.") + return res.send("Sorry! Boss has ended. You can't add claim from now.") } if (Date.now() < BOSS_START_DATE.getTime()) { - return res.send("Sorry. BOSS has not yet started") + return res.send("Sorry! BOSS has not yet started") } du.createClaim( @@ -79,7 +79,7 @@ route.post('/claims/add', auth.ensureLoggedInGithub, (req, res) => { }) .catch(err => { console.log(err) - res.send('Sorry. Could not add the claim right now.') + res.send('Sorry! Could not add the claim right now.') }) })