1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 10:04:25 +00:00

Updated error messages as per the convention (lowercase)

This commit is contained in:
NoSkillGirl 2020-06-21 11:52:50 +05:30
parent 7e2dbd87fe
commit 6cfd4d345b

View file

@ -73,7 +73,7 @@ func Command() *cobra.Command {
os.Exit(3)
}
if policyHasVariables(*policy) {
return sanitizedError.NewWithError(fmt.Sprintf("nvalid policy %s. 'apply' does not support policies with variables", policy.Name), err)
return sanitizedError.NewWithError(fmt.Sprintf("invalid policy %s. 'apply' does not support policies with variables", policy.Name), err)
}
}
@ -91,7 +91,7 @@ func Command() *cobra.Command {
resources, err := getResources(policies, resourcePaths, dClient)
if err != nil {
return sanitizedError.NewWithError("Failed to load resources", err)
return sanitizedError.NewWithError("failed to load resources", err)
}
for i, policy := range policies {