mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
Style: change err msg
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user