Comparing version 5.11.7 to 5.11.8
@@ -60,4 +60,9 @@ "use strict"; | ||
var req = transport.request(query, function(res) { | ||
if(!(res.statusCode >= 200 && res.statusCode < 300)) | ||
return chain({err : `Invalid status code '${res.statusCode}' for '${req.path}'`, res}); | ||
if(!(res.statusCode >= 200 && res.statusCode < 300)) { | ||
let message = `Invalid status code '${res.statusCode}' for '${req.path}'`; | ||
let error = new Error(message); | ||
error.err = message; | ||
error.res = res; | ||
return chain(error); | ||
} | ||
chain(null, res); | ||
@@ -64,0 +69,0 @@ }); |
{ | ||
"name": "nyks", | ||
"version": "5.11.7", | ||
"version": "5.11.8", | ||
"description": "nodejs exupery style", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67070
1749