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 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
- return err.detail ? `Forbidden: ${err.detail}` : 'Forbidden.';
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.130';
1
+ export const CLI_VERSION = '0.1.131';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.1.130",
3
+ "version": "0.1.131",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
Binary file
Binary file