mirror of
https://github.com/docker/compose.git
synced 2025-07-16 18:24:26 +02:00
clearer error message and fix typo
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
74107bf512
commit
2484dfa5b5
@ -173,7 +173,7 @@ func (s sdk) GetDefaultVPC(ctx context.Context) (string, error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if len(vpcs.Vpcs) == 0 {
|
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
|
return *vpcs.Vpcs[0].VpcId, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user