diff --git a/cmd/ghcs/create.go b/cmd/ghcs/create.go index 128a5ea44..b23e5631b 100644 --- a/cmd/ghcs/create.go +++ b/cmd/ghcs/create.go @@ -161,7 +161,13 @@ func getMachineName(ctx context.Context, user *api.User, repo *api.Repository, l return machine, nil } } - return "", fmt.Errorf("there are is no such machine for the repository: %s", machine) + + availableSkus := make([]string, len(skus)) + for i := 0; i < len(skus); i++ { + availableSkus[i] = skus[i].Name + } + + return "", fmt.Errorf("there are is no such machine for the repository: %s\nAvailable machines: %v", machine, availableSkus) } else if len(skus) == 0 { return "", nil }