Skip to content

Commit 9c18788

Browse files
committed
Merge pull request rbren#6 from briri/master
Added error handling to response object in parseURL method
2 parents f06df6b + 334b32c commit 9c18788

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dist/rss-parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ Parser.parseURL = function(url, callback) {
123123
res.on('end', function() {
124124
return Parser.parseString(xml, callback);
125125
})
126+
res.on('error', callback);
126127
})
127128
req.on('error', callback);
128129
}

0 commit comments

Comments
 (0)