runcloud 0.1.130 → 0.1.131
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/api.js +7 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/runcloud-0.1.131.tgz +0 -0
- package/runcloud-0.1.130.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -256,8 +256,13 @@ function headline(err) {
|
|
|
256
256
|
const command = loginCommandName();
|
|
257
257
|
return `Session expired or invalid — run \`${command}\`.`;
|
|
258
258
|
}
|
|
259
|
-
if (err.status === 403)
|
|
260
|
-
|
|
259
|
+
if (err.status === 403) {
|
|
260
|
+
if (err.detail)
|
|
261
|
+
return `Forbidden: ${err.detail}`;
|
|
262
|
+
const where = err.path ? ` on ${err.path}` : '';
|
|
263
|
+
return (`Forbidden, and the API did not say why. Either the credential was not accepted ` +
|
|
264
|
+
`(run \`${loginCommandName()}\`), or it is valid but not allowed${where}.`);
|
|
265
|
+
}
|
|
261
266
|
if (err.status === 404) {
|
|
262
267
|
const snapshotRestoreMatch = err.path?.match(/^\/run-cloud\/snapshots\/([^/]+)\/restore$/);
|
|
263
268
|
if (snapshotRestoreMatch) {
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = '0.1.
|
|
1
|
+
export const CLI_VERSION = '0.1.131';
|
package/package.json
CHANGED
|
Binary file
|
package/runcloud-0.1.130.tgz
DELETED
|
Binary file
|