Explorar o código

clearer error message and fix typo

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof %!s(int64=4) %!d(string=hai) anos
pai
achega
2484dfa5b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ecs/sdk.go

+ 1 - 1
ecs/sdk.go

@@ -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
 }