From e0f76432bf48aea33976914e522b94bb159f6a37 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 10 Jan 2021 14:21:42 -0700 Subject: [PATCH] Update error response message to not give more info away than needed. --- server/src/events/JoinGame.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/events/JoinGame.ts b/server/src/events/JoinGame.ts index 3936ce1..aa202b0 100644 --- a/server/src/events/JoinGame.ts +++ b/server/src/events/JoinGame.ts @@ -132,7 +132,7 @@ export default (io: Server, socket: Socket, data: JoinGame) => { game.log.debug(`${socket.id} attempted to join with a name already in use ${data.name}`); socket.emit(`GameJoined`, { status: 403, - message: `A player already has that name in the game.`, + message: `Cannot connect to a game that's in progress.`, source: `JoinGame` }); return;