Comparing version 2.2.5 to 2.2.6
@@ -76,3 +76,6 @@ const https = require('https'); | ||
if (((res.statusCode / 100) | 0) !== 2) { | ||
return callback(new Error(response)); | ||
let message = typeof response === 'object' ? | ||
(response && response.error && response.error.message) || 'Unspecified Error' : | ||
response; | ||
return callback(new Error(message), response); | ||
} else { | ||
@@ -79,0 +82,0 @@ return callback(null, response, res.headers); |
{ | ||
"name": "lib", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "StdLib: Standard Library for Microservices Node.js Bindings", | ||
@@ -5,0 +5,0 @@ "main": "lib.js", |
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
16154
299