@manfred-kunze-dev/backbone-cli 2.13.0-dev.7 → 2.13.0-dev.9
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/dist/lib/client.js +2 -2
- package/dist/lib/errors.js +1 -0
- package/package.json +1 -1
package/dist/lib/client.js
CHANGED
|
@@ -17,8 +17,8 @@ const errorMiddleware = {
|
|
|
17
17
|
}
|
|
18
18
|
throw new BackboneApiError({
|
|
19
19
|
status: body.status ?? response.status,
|
|
20
|
-
error: body.error ?? response.statusText,
|
|
21
|
-
message: body.message ?? `HTTP ${response.status}: ${response.statusText}`,
|
|
20
|
+
error: body.title ?? body.error ?? response.statusText,
|
|
21
|
+
message: body.detail ?? body.message ?? `HTTP ${response.status}: ${response.statusText}`,
|
|
22
22
|
timestamp: body.timestamp ?? new Date().toISOString(),
|
|
23
23
|
});
|
|
24
24
|
},
|
package/dist/lib/errors.js
CHANGED
|
@@ -13,6 +13,7 @@ export class BackboneApiError extends Error {
|
|
|
13
13
|
}
|
|
14
14
|
const HINTS = {
|
|
15
15
|
401: 'Invalid or missing API key. Run "backbone auth login" to configure credentials.',
|
|
16
|
+
402: "Billing limit reached. Check your plan limits or upgrade at the dashboard.",
|
|
16
17
|
403: "You don't have permission for this action. Check your organization role.",
|
|
17
18
|
404: "Resource not found. Verify the ID is correct.",
|
|
18
19
|
409: "Conflict — the resource may already exist or was modified concurrently.",
|