bugfix: actually return 404 when game not found

This commit is contained in:
Evan
2025-03-31 09:36:38 -07:00
parent fe478c1395
commit f12d14fd22
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ export function startWorker() {
const game = gm.game(req.params.id);
if (game == null) {
log.info(`lobby ${req.params.id} not found`);
return res.status(404);
return res.status(404).json({ error: "Game not found" });
}
res.json(game.gameInfo());
}),