avo 3.1.0 → 3.1.1
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 +7 -4
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -167,10 +167,13 @@ function _request(options) {
|
|
|
167
167
|
}
|
|
168
168
|
return resolve(JSON.parse(response.body));
|
|
169
169
|
})
|
|
170
|
-
.catch((err) =>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
.catch((err) => {
|
|
171
|
+
report.error(`${responseToError(err.response)}\n`);
|
|
172
|
+
reject(new AvoError(`Server Error. ${err.message}`, {
|
|
173
|
+
original: err,
|
|
174
|
+
exit: 2,
|
|
175
|
+
}));
|
|
176
|
+
});
|
|
174
177
|
});
|
|
175
178
|
}
|
|
176
179
|
const _appendQueryData = (urlPath, data) => {
|