diff --git a/pkg/kyverno/common/common.go b/pkg/kyverno/common/common.go index 6727fd834e..75628dd36b 100644 --- a/pkg/kyverno/common/common.go +++ b/pkg/kyverno/common/common.go @@ -931,6 +931,9 @@ func processMutateEngineResponse(policy *v1.ClusterPolicy, mutateResponse *respo } else if mutateResponseRule.Status == response.RuleStatusSkip { fmt.Printf("\nskipped mutate policy %s -> resource %s", policy.Name, resPath) rc.Skip++ + } else if mutateResponseRule.Status == response.RuleStatusError { + fmt.Printf("\nerror while applying mutate policy %s -> resource %s\nerror: %s", policy.Name, resPath, mutateResponseRule.Message) + rc.Error++ } else { if printCount < 1 { fmt.Printf("\nfailed to apply mutate policy %s -> resource %s", policy.Name, resPath)