Pretty-print error on catching it
This commit is contained in:
parent
252cd773ac
commit
e8b9b41453
2 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue