From 6e6efc282a4ade67a8385dc6d0a5d6a7d81a8757 Mon Sep 17 00:00:00 2001 From: hohmannr Date: Tue, 11 Jul 2023 22:04:07 +0200 Subject: [PATCH] Fixes spelling Signed-off-by: hohmannr --- pkg/config/config.go | 2 +- pkg/outputter.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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()