mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-06 09:05:17 +00:00
bugfix: actually return 404 when game not found
This commit is contained in:
@@ -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());
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user