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.
Files changed (2) hide show
  1. package/cli.js +7 -4
  2. 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) => reject(new AvoError(`Server Error. ${err.message}`, {
171
- original: err,
172
- exit: 2,
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "avo",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "type": "module",
5
5
  "description": "The command-line interface for Avo",
6
6
  "author": "Avo (https://www.avo.app)",