diff --git a/pkg/config/config.go b/pkg/config/config.go index 855203de..f6cc064a 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -512,7 +512,7 @@ func (c *Config) subPackages( return nil }) if walkErr != nil { - return nil, fmt.Errorf("error occured during filesystem walk: %w", walkErr) + return nil, fmt.Errorf("error occurred during filesystem walk: %w", walkErr) } // Parse the subdirectories we found into their respective fully qualified diff --git a/pkg/outputter.go b/pkg/outputter.go index 2d7fe931..657e96d5 100644 --- a/pkg/outputter.go +++ b/pkg/outputter.go @@ -22,7 +22,7 @@ import ( "github.com/vektra/mockery/v2/pkg/stackerr" ) -var ErrInfiniteLoop = fmt.Errorf("infintie loop in template variables detected") +var ErrInfiniteLoop = fmt.Errorf("infinite loop in template variables detected") // Functions available in the template for manipulating // @@ -238,7 +238,7 @@ func parseConfigTemplates(ctx context.Context, c *config.Config, iface *Interfac changesMade := true for changesMade { if numIterations >= 20 { - msg := "infintie loop in template variables detected" + msg := "infinite loop in template variables detected" log.Error().Msg(msg) for key, val := range templateMap { l := log.With().Str("variable-name", key).Str("variable-value", *val).Logger()