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:
parent
7e2dbd87fe
commit
6cfd4d345b
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue