debug: include guild id in RecoverablePluginError logs
This commit is contained in:
parent
19b7b4a5ee
commit
5be1e8e5b0
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ function errorHandler(err) {
|
||||||
// Log it in the console as a warning and post a warning to the guild's log.
|
// Log it in the console as a warning and post a warning to the guild's log.
|
||||||
|
|
||||||
// tslint:disable:no-console
|
// tslint:disable:no-console
|
||||||
console.warn(`${guildName}: [${err.code}] ${err.message}`);
|
console.warn(`${guildId} ${guildName}: [${err.code}] ${err.message}`);
|
||||||
|
|
||||||
if (err.guild) {
|
if (err.guild) {
|
||||||
const logs = new GuildLogs(err.guild.id);
|
const logs = new GuildLogs(err.guild.id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue