print stack of error

This commit is contained in:
Lukáš H 2020-06-06 11:05:11 +02:00
parent d92f9ffb8b
commit d9ac55f8a1
No known key found for this signature in database
GPG key ID: 52AED802C323B705

View file

@ -213,6 +213,7 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) {
} }
client.logger.error('(YT API change, disregard) ' + err) client.logger.error('(YT API change, disregard) ' + err)
client.logger.error(err.stack);
return message.channel.send(`<:error:466995152976871434> An error has occured: \n\`${err}\``) return message.channel.send(`<:error:466995152976871434> An error has occured: \n\`${err}\``)
// return message.channel.send('<:error:466995152976871434> YouTube have made changes to their site that break Woomy\'s music module. An announcement will be made in the development server when this issue is resolved.') // return message.channel.send('<:error:466995152976871434> YouTube have made changes to their site that break Woomy\'s music module. An announcement will be made in the development server when this issue is resolved.')
} }