diff --git a/build/npm/src/index.js b/build/npm/src/index.js index 3356a5b5c..ff3eb36c3 100644 --- a/build/npm/src/index.js +++ b/build/npm/src/index.js @@ -25,8 +25,10 @@ var downloadFollowingRedirect = function(url, resolve, reject) { https.get(url, { headers: { 'accept-encoding': 'gzip,deflate' } }, res => { if (res.statusCode >= 300 && res.statusCode < 400) { downloadFollowingRedirect(res.headers.location, resolve, reject); + res.resume() } else if (res.statusCode >= 400) { reject(new Error(`Unable to download '${url}' : ${res.statusCode}-'${res.statusMessage}'`)); + res.resume() } else { const chunks = []; res diff --git a/version/version.go b/version/version.go index 2feea7af0..57da1bd15 100644 --- a/version/version.go +++ b/version/version.go @@ -14,7 +14,7 @@ import ( ) // CurrentGaugeVersion represents the current version of Gauge -var CurrentGaugeVersion = &Version{1, 5, 3} +var CurrentGaugeVersion = &Version{1, 5, 4} // BuildMetadata represents build information of current release (e.g, nightly build information) var BuildMetadata = ""