Including stack trace in error log.

This commit is contained in:
ThePendulum 2022-07-15 17:49:01 +02:00
parent 91c99428ff
commit 802639d830
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ function getGames(bot) {
} }
function handleError(error, socket, domain, data) { function handleError(error, socket, domain, data) {
logger.error(`${domain} '${JSON.stringify(data)}' triggered error: ${error.message}`); logger.error(`${domain} '${JSON.stringify(data)}' triggered error: ${error.message} ${error.stack}`);
if (data?.roomId) { if (data?.roomId) {
socket.transmit('message', { socket.transmit('message', {