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