Change log from error to warn

This commit is contained in:
Oliver-Akins 2020-10-20 22:43:05 -06:00
parent 8ca6d8352d
commit b8f71fbc46

View file

@ -37,7 +37,7 @@ export const KickPlayer = (io: Server, socket: Socket, data: KickPlayer) => {
// Ensure the user can be kicked during the state
if (game.status !== `lobby`) {
log.error(`Cannot kick a player from the game when not in the lobby. (state=${game.status})`);
log.warn(`Cannot kick a player from the game when not in the lobby. (state=${game.status})`);
socket.emit(`PlayerKicked`, {
success: false,
message: `Cannot kick a player when the game is in progress.`,