Merge pull request #1240 from docker/not_vpc

clearer error message and fix typo
This commit is contained in:
Guillaume Tardif 2021-02-04 10:02:20 +01:00 committed by GitHub
commit 4620d8b527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ func (s sdk) GetDefaultVPC(ctx context.Context) (string, error) {
return "", err
}
if len(vpcs.Vpcs) == 0 {
return "", fmt.Errorf("account has not default VPC")
return "", fmt.Errorf("account has no default VPC. Set VPC to deploy to using 'x-aws-vpc'")
}
return *vpcs.Vpcs[0].VpcId, nil
}