summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cb2a7a1)
We're on our way to a clean 404 error, but we don't want to
hit a JavaScript error along the way.
- request.game = lmno.ids[game_id].game;
- if (request.game === undefined) {
+ /* See if there is any game with this ID. */
+ const game = lmno.ids[game_id];
+ if (game === undefined) {
response.sendStatus(404);
return;
}
response.sendStatus(404);
return;
}
+
+ /* Stash the game onto the request to be used by the game-specific code. */
+ request.game = game.game;