@nzz/q-cli 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -223,11 +223,13 @@ async function uploadResource(qServer, accessToken, cookie, resourcePath) {
223
223
  headers: headers,
224
224
  body: form,
225
225
  });
226
+ const body = await response.json();
227
+
226
228
  if (response.ok) {
227
- return await response.json();
229
+ return body;
228
230
  } else {
229
231
  throw new Error(
230
- `Error occured while uploading the resource at ${resourcePath}. Please check your connection and try again.\nResponse: ${response.status} - ${response.statusText}`
232
+ `Error occured while uploading the resource at ${resourcePath}. Please check your connection and try again.\nResponse: ${body.statusCode} ${body.error} - ${body.message}`
231
233
  );
232
234
  }
233
235
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nzz/q-cli",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Cli tool to setup new Q tools, new Q server implementations and start Q dev server to test developing Q tools",
5
5
  "main": "index.js",
6
6
  "scripts": {