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

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