Comparing version 2.0.4 to 2.0.5
@@ -43,6 +43,11 @@ "use strict"; | ||
response.statusCode !== 204) { | ||
var errorBody = _parseError(JSON.parse(response.body)); | ||
var error = createError(response.statusCode, | ||
errorBody.message, | ||
{name: _convertErrorName(errorBody.id)}); | ||
var error; | ||
try { | ||
var errorBody = _parseError(JSON.parse(response.body)); | ||
error = createError(response.statusCode, | ||
errorBody.message, | ||
{name: _convertErrorName(errorBody.id)}); | ||
} catch (ex) { | ||
error = createError(response.statusCode, response.body); | ||
} | ||
callback(error, null); | ||
@@ -49,0 +54,0 @@ return true; |
{ | ||
"name": "coinbase", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"author": "Coinbase", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/coinbase/coinbase-node/issues", |
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
108746
3194