Including stack trace in error log.

This commit is contained in:
2022-07-15 17:49:01 +02:00
parent 91c99428ff
commit 802639d830

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', {