From 28fc88aee2bb43735bb76b10f111b411ce66e1e4 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 20 Mar 2018 20:33:29 +0100 Subject: Improve error message --- src/server/routes/getSchedule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/routes/getSchedule.js b/src/server/routes/getSchedule.js index 1c6f1a3..f1120b7 100644 --- a/src/server/routes/getSchedule.js +++ b/src/server/routes/getSchedule.js @@ -51,7 +51,7 @@ router.get('/:type/:value', (req, res, next) => { users.filter(user_ => user_.type === type && user_.value === value)[0]; if (!user) { - next(new Error(`${type}${value} is not in the user index.`)); + next(new Error(`${type}/${value} is not in the user index.`)); } if (!week) { -- cgit v1.1