diff --git a/pkg/commands/config_verify.go b/pkg/commands/config_verify.go index 4fc3cf05640f..a44050b593b3 100644 --- a/pkg/commands/config_verify.go +++ b/pkg/commands/config_verify.go @@ -47,7 +47,7 @@ func (c *configCommand) executeVerify(cmd *cobra.Command, _ []string) error { printValidationDetail(cmd, &detail) - return fmt.Errorf("the configuration contains invalid elements") + return errors.New("the configuration contains invalid elements") } return nil