@keywaysh/cli 0.0.17 → 0.0.19
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/cli.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -69,7 +69,7 @@ var INTERNAL_POSTHOG_HOST = "https://eu.i.posthog.com";
|
|
|
69
69
|
// package.json
|
|
70
70
|
var package_default = {
|
|
71
71
|
name: "@keywaysh/cli",
|
|
72
|
-
version: "0.0.
|
|
72
|
+
version: "0.0.19",
|
|
73
73
|
description: "One link to all your secrets",
|
|
74
74
|
type: "module",
|
|
75
75
|
bin: {
|
|
@@ -216,13 +216,13 @@ async function handleResponse(response) {
|
|
|
216
216
|
if (contentType.includes("application/json")) {
|
|
217
217
|
try {
|
|
218
218
|
const error = JSON.parse(text);
|
|
219
|
-
throw new APIError(response.status, error.
|
|
219
|
+
throw new APIError(response.status, error.title || "Error", error.detail || `HTTP ${response.status}`, error.upgradeUrl);
|
|
220
220
|
} catch (e) {
|
|
221
221
|
if (e instanceof APIError) throw e;
|
|
222
|
-
throw new APIError(response.status, "
|
|
222
|
+
throw new APIError(response.status, "Error", text || `HTTP ${response.status}`);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
throw new APIError(response.status, "
|
|
225
|
+
throw new APIError(response.status, "Error", text || `HTTP ${response.status}`);
|
|
226
226
|
}
|
|
227
227
|
if (!text) {
|
|
228
228
|
return {};
|