better error msg

This commit is contained in:
Erik 2022-01-27 11:07:47 +02:00
parent ebe09d99f7
commit a5ea2be87a
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589

View File

@ -259,7 +259,7 @@ class ChannelHandler {
delete this.modmail.cache.channels[userId]; delete this.modmail.cache.channels[userId];
} }
}).catch((err) => { }).catch((err) => {
this.client.logger.error(`Failed to delete channel from graveyard during sweep:\n${err.stack}`); this.client.logger.error(`Failed to delete channel ${channel?.id || channel} from graveyard during sweep:\n${err.stack}`);
}); });
channelCount++; channelCount++;
} }