From 2bb5c0245ab070bb4036d9da331fd888bd392031 Mon Sep 17 00:00:00 2001 From: Charlie Chiang Date: Fri, 5 Aug 2022 01:03:33 +0800 Subject: [PATCH] Style: change err msg Signed-off-by: Charlie Chiang --- pkg/appfile/parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/appfile/parser.go b/pkg/appfile/parser.go index 6566aea0a..3c5a8dc5a 100644 --- a/pkg/appfile/parser.go +++ b/pkg/appfile/parser.go @@ -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: