Skip to content

Commit 2dd1a34

Browse files
authored
Merge pull request #581 from DefangLabs/lio-show-down-hint
show down hint on maximum number of projects
2 parents c5ff118 + 5f2c47b commit 2dd1a34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cmd/cli/command/commands.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,14 @@ func Execute(ctx context.Context) error {
7979
printDefangHint("Fix the error and try again. To validate the compose file, use:", compose+" config")
8080
}
8181

82-
if strings.Contains(err.Error(), "secret") {
82+
if strings.Contains(err.Error(), "config") {
8383
printDefangHint("To manage sensitive service config, use:", "config")
8484
}
8585

86+
if err.Error() == "resource_exhausted: maximum number of projects reached" {
87+
printDefangHint("To deactivate a project, do:", "compose down")
88+
}
89+
8690
var cerr *cli.CancelError
8791
if errors.As(err, &cerr) {
8892
printDefangHint("Detached. The process will keep running.\nTo continue the logs from where you left off, do:", cerr.Error())

0 commit comments

Comments
 (0)