0
0
Fork 0

Update error response message to not give more info away than needed.

This commit is contained in:
Oliver-Akins 2021-01-10 14:21:42 -07:00
parent 120cedb963
commit e0f76432bf

View file

@ -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;