mirror of
https://gitlab.silvrtree.co.uk/martind2000/rss-braider.git
synced 2025-02-10 20:29:16 +00:00
Cleaning up logline
This commit is contained in:
parent
628333b4a9
commit
d0250ac852
@ -87,7 +87,7 @@ RssBraider.prototype.processFeed = function(feed_name, format, callback)
|
||||
req.on('response', function (res) {
|
||||
var stream = this;
|
||||
if (res.statusCode !== 200) {
|
||||
return this.emit('error', new Error('Bad status code'));
|
||||
return this.emit('error', 'Bad status code: ' + res.statusCode);
|
||||
}
|
||||
stream.pipe(feedparser);
|
||||
});
|
||||
|
@ -82,10 +82,4 @@ module.exports = function (item, itemOptions) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
console.log(item);
|
||||
};
|
Loading…
Reference in New Issue
Block a user