avo 3.2.8 → 3.2.9-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +6 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -176,7 +176,12 @@ function _request(options) {
|
|
|
176
176
|
if (response.statusCode >= 400) {
|
|
177
177
|
return reject(responseToError(response));
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
else if (response) {
|
|
180
|
+
return resolve(JSON.parse(response.body));
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
return reject(responseToError(response));
|
|
184
|
+
}
|
|
180
185
|
})
|
|
181
186
|
.catch((err) => {
|
|
182
187
|
report.error(`${responseToError(err.response)}\n`);
|