Skip to content

Commit d4771a2

Browse files
committed
2 parents 48c7925 + f3b7388 commit d4771a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var parseRSS2 = function(xmlObj, callback) {
103103

104104
Parser.parseString = function(xml, callback) {
105105
XML2JS.parseString(xml, function(err, result) {
106-
if (err) throw err;
106+
if (err) return callback(err);
107107
if (result.feed) {
108108
return parseAtomFeed(result, callback)
109109
} else if (result.rss && result.rss.$.version && result.rss.$.version.indexOf('2') === 0) {

0 commit comments

Comments
 (0)