0
0
Fork 0

Update logs / add an error log on 500 errors.

This commit is contained in:
Oliver-Akins 2021-01-07 16:15:43 -07:00
parent 2d59397c4a
commit eb2a85399b
13 changed files with 17 additions and 4 deletions

View file

@ -166,6 +166,7 @@ export default (io: Server, socket: Socket, data: JoinGame) => {
});
}
catch (err) {
log.prettyError(err);
socket.emit(`GameJoined`, {
status: 500,
message: `${err.name}: ${err.message}`,