Skip to content

Commit

Permalink
handle socket errors and the like.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Woos committed Jan 24, 2013
1 parent 447e6bd commit e35a249
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/user/http_program.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ exports.request = function(options, next) {
options.response = res.body;
next(res);
});
req.on('error', function(err) {
// might as well do something.
next({res: {statusCode: 499}});
});
};

// Sets the hostname and port (port optional)
Expand Down

0 comments on commit e35a249

Please sign in to comment.