From dd8f8b426f60af49fb2c0713bce320d35f88252d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 12 Nov 2015 11:10:57 +0000 Subject: [PATCH] fix error on error --- holepunch/helpers/update-ip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/holepunch/helpers/update-ip.js b/holepunch/helpers/update-ip.js index 3e3606b..17f36e9 100644 --- a/holepunch/helpers/update-ip.js +++ b/holepunch/helpers/update-ip.js @@ -73,7 +73,7 @@ module.exports.update = function (opts) { }); }); - req.on('error', function () { + req.on('error', function (err) { reject(err); });