diff --git a/app/models/feed-data.js b/app/models/feed-data.js index 862f295..b84f651 100644 --- a/app/models/feed-data.js +++ b/app/models/feed-data.js @@ -64,7 +64,7 @@ module.exports = class FeedData { const channel = guild.channels.find(ch => ch.type === "text" && ch.name.toLowerCase() === this.channelName.toLowerCase()); const role = this.roleName ? guild.roles.find(role => role.name.toLowerCase() === this.roleName.toLowerCase()) : null; - channel.send((role ? role + " " : "") + latest); + channel.send((role ? role + " " : "") + latest).catch(err => DiscordUtil.dateError(`Error posting in ${channel.id}`)); } } }); diff --git a/app/models/guild-data.js b/app/models/guild-data.js index 51adcb4..f26e707 100644 --- a/app/models/guild-data.js +++ b/app/models/guild-data.js @@ -11,7 +11,7 @@ module.exports = class GuildData { const promises = []; this.feeds.forEach(feed => { - promises.push(feed.updatePastPostedLinks(guild).catch(DiscordUtil.dateError)); + promises.push(feed.updatePastPostedLinks(guild).catch(err => DiscordUtil.dateError(`Error reading history in ${err.path}`))); }); return Promise.all(promises);