Style: change err msg

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
This commit is contained in:
Charlie Chiang
2022-08-05 01:03:33 +08:00
parent 337032511e
commit 2bb5c0245a
+2 -2
View File
@@ -382,7 +382,7 @@ func (p *Parser) parsePoliciesFromRevision(ctx context.Context, af *Appfile) (er
}
for _, policy := range af.Policies {
if policy.Properties == nil {
return fmt.Errorf("policy name %s must not have empty properties", policy.Name)
return fmt.Errorf("policy %s named %s must not have empty properties", policy.Type, policy.Name)
}
switch policy.Type {
case v1alpha1.GarbageCollectPolicyType:
@@ -411,7 +411,7 @@ func (p *Parser) parsePolicies(ctx context.Context, af *Appfile) (err error) {
}
for _, policy := range af.Policies {
if policy.Properties == nil {
return fmt.Errorf("policy name %s must not have empty properties", policy.Name)
return fmt.Errorf("policy %s named %s must not have empty properties", policy.Type, policy.Name)
}
switch policy.Type {
case v1alpha1.GarbageCollectPolicyType: