cassian-cli 0.2.0 → 0.2.1
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/errors.js +3 -2
- package/package.json +1 -1
package/dist/lib/errors.js
CHANGED
|
@@ -42,14 +42,15 @@ function translateApiError(err) {
|
|
|
42
42
|
case 404:
|
|
43
43
|
fatal("Instance not found.", "Run: cassian up");
|
|
44
44
|
case 409:
|
|
45
|
-
fatal("An instance with this name already exists.", "Run: cassian down, then try again.");
|
|
45
|
+
fatal(err.detail || "An instance with this name already exists.", "Run: cassian down, then try again.");
|
|
46
46
|
case 422:
|
|
47
47
|
fatal(`Invalid configuration: ${err.detail}`);
|
|
48
48
|
case 429:
|
|
49
49
|
fatal("Too many requests.", "Wait a moment and try again.");
|
|
50
|
+
case 503:
|
|
51
|
+
fatal(err.detail || "No GPUs available right now.", "Try again in a moment or reduce gpu.count in cassian.yaml.");
|
|
50
52
|
case 500:
|
|
51
53
|
case 502:
|
|
52
|
-
case 503:
|
|
53
54
|
case 504:
|
|
54
55
|
fatal("Something went wrong on our end.", "Try again in a moment. Still broken? Reach out at trycassian.com.");
|
|
55
56
|
default:
|