We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48c7925 + f3b7388 commit d4771a2Copy full SHA for d4771a2
index.js
@@ -103,7 +103,7 @@ var parseRSS2 = function(xmlObj, callback) {
103
104
Parser.parseString = function(xml, callback) {
105
XML2JS.parseString(xml, function(err, result) {
106
- if (err) throw err;
+ if (err) return callback(err);
107
if (result.feed) {
108
return parseAtomFeed(result, callback)
109
} else if (result.rss && result.rss.$.version && result.rss.$.version.indexOf('2') === 0) {
0 commit comments