@boodibox/api-client 0.1.2 → 0.1.4

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/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -219,7 +219,7 @@ function createClient(opts = {}) {
219
219
 
220
220
  if (!resp.ok) {
221
221
  const parsed = await safeParseJSON(resp);
222
- const e = new Error('submit post failed');
222
+ const e = new Error(`submit post failed: status: ${resp.status}, body: ${JSON.stringify(parsed)}`);
223
223
  e.status = resp.status;
224
224
  e.body = parsed;
225
225
  throw e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boodibox/api-client",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Minimal client for BoodiBox API - submit posts - automate - upload media.",
5
5
  "main": "index.js",
6
6
  "license": "MIT",