aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-03-20 20:33:29 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-03-20 20:33:29 +0100
commit28fc88aee2bb43735bb76b10f111b411ce66e1e4 (patch)
tree1282a85806cf63031a06d4d7be07ec3d83365fbc
parentf46679147cb6c422e2a4dbf0f041301e371266fc (diff)
Improve error message
-rw-r--r--src/server/routes/getSchedule.js2
1 files changed, 1 insertions, 1 deletions
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) {