Skip to content

Commit

Permalink
Merge pull request #8 from kunev/handle_request_errors
Browse files Browse the repository at this point in the history
Handle http(s) request errors
  • Loading branch information
ekalinin committed Aug 22, 2013
2 parents 6618c81 + f6bb25e commit 1748482
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ RobotsParser.prototype.read = function(after_parse) {


});

request.on('error', function(error) {
ut.d('RobotsParser.read: request error: ' + error)
self.error = error;
after_parse(self, false);
});

request.end();
};

Expand Down

0 comments on commit 1748482

Please sign in to comment.