Update error response message to not give more info away than needed.
This commit is contained in:
parent
120cedb963
commit
e0f76432bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`);
|
game.log.debug(`${socket.id} attempted to join with a name already in use ${data.name}`);
|
||||||
socket.emit(`GameJoined`, {
|
socket.emit(`GameJoined`, {
|
||||||
status: 403,
|
status: 403,
|
||||||
message: `A player already has that name in the game.`,
|
message: `Cannot connect to a game that's in progress.`,
|
||||||
source: `JoinGame`
|
source: `JoinGame`
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue