From 13aee13f18a07bd3db951b5049a7173195c631e4 Mon Sep 17 00:00:00 2001 From: Joe-Dowd Date: Tue, 28 Apr 2020 05:10:55 +0100 Subject: [PATCH] Improved phrasing of error responses \n removed debug logs --- src/routes/voteOnSponsorTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/voteOnSponsorTime.js b/src/routes/voteOnSponsorTime.js index c1a1c14..d98f7ac 100644 --- a/src/routes/voteOnSponsorTime.js +++ b/src/routes/voteOnSponsorTime.js @@ -174,6 +174,6 @@ module.exports = async function voteOnSponsorTime(req, res) { res.sendStatus(200); } catch (err) { console.error(err); - res.status(400).json({error: 'Think of something to return'}); + res.status(500).json({error: 'Internal error creating segment vote'}); } } \ No newline at end of file