Pretty-print error on catching it

This commit is contained in:
Oliver-Akins 2020-10-06 23:14:49 -06:00
parent 252cd773ac
commit e8b9b41453
2 changed files with 2 additions and 1 deletions

View file

@ -37,7 +37,7 @@ export const HostGame = (socket: Socket, data: HostGame) => {
game_code: game_code
});
} catch (err) {
log.error(err);
log.prettyError(err);
// Let client know an error occured
socket.emit(`HostInformation`, {
success: false,