Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

listen to request error event and callback - otherwise could throw

  • Loading branch information...
commit a888e3becd24f4810d312f112b0f4a8fe4eb85ee 1 parent 90ad76a
@pconstr pconstr authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/raw.js
View
3  lib/raw.js
@@ -52,6 +52,9 @@ function doRequest(method, url, callback) {
}
});
});
+ req.on('error', function(err) {
+ callback(err);
+ });
req.end();
};
Please sign in to comment.
Something went wrong with that request. Please try again.