Remove 'BODY is not RSS or ATOM' error from console logging'
This commit is contained in:
benji7425 2017-10-02 02:08:04 +01:00
parent 8c6462e1b7
commit e3c102aa5b
3 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,12 @@
# Changelog # Changelog
## v3.0.0-b6
### Updatd
- Removed "Body is not RSS or ATOM" error from being console logged
- These seem to happen quite a lot, but don't actually impair the functionality, so just cause un-necessary spam
## v3.0.0-b5 ## v3.0.0-b5
### Added ### Added

View File

@ -70,8 +70,12 @@ module.exports = class FeedData {
_doFetchRSS(guild) { _doFetchRSS(guild) {
FeedRead(this.url, (err, articles) => { FeedRead(this.url, (err, articles) => {
if (err) //filter out "Body is not RSS or ATOM" errors because these seem to happen rather frequently
return DiscordUtil.dateError(err.message || err); if (err) {
if (err.message !== "Body is not RSS or ATOM")
DiscordUtil.dateError("Error reading RSS feed: " + (err.message || err));
return;
}
const latest = normaliseUrl(articles[0].link); const latest = normaliseUrl(articles[0].link);

View File

@ -1,5 +1,5 @@
{ {
"version": "3.0.0-b5", "version": "3.0.0-b6",
"main": "app/index.js", "main": "app/index.js",
"scripts": { "scripts": {
"postinstall": "cd ./discord-bot-core && npm install", "postinstall": "cd ./discord-bot-core && npm install",