diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-03-20 20:33:29 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-03-20 20:33:29 +0100 |
commit | 28fc88aee2bb43735bb76b10f111b411ce66e1e4 (patch) | |
tree | 1282a85806cf63031a06d4d7be07ec3d83365fbc /src/server/routes | |
parent | f46679147cb6c422e2a4dbf0f041301e371266fc (diff) |
Improve error message
Diffstat (limited to 'src/server/routes')
-rw-r--r-- | src/server/routes/getSchedule.js | 2 |
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) { |