From b8526f32fa97711ff9447c5a08b0f0f7caef2637 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 23 May 2023 12:37:44 +0300 Subject: [PATCH] commands,config: Fix typo in log and error messages --- commands/convert.go | 2 +- config/configLoader.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/convert.go b/commands/convert.go index 765fb5f549f..fb01087d581 100644 --- a/commands/convert.go +++ b/commands/convert.go @@ -140,7 +140,7 @@ func (c *convertCommand) convertAndSavePage(p page.Page, site *hugolib.Site, tar errMsg := fmt.Errorf("error processing file %q", p.File().Path()) - site.Log.Infoln("ttempting to convert", p.File().Filename()) + site.Log.Infoln("attempting to convert", p.File().Filename()) f := p.File() file, err := f.FileInfo().Meta().Open() diff --git a/config/configLoader.go b/config/configLoader.go index 6e520b9ccba..656ef7f7e68 100644 --- a/config/configLoader.go +++ b/config/configLoader.go @@ -157,7 +157,7 @@ func LoadConfigFromDir(sourceFs afero.Fs, configDir, environment string) (Provid if err != nil { // This will be used in error reporting, use the most specific value. dirnames = []string{path} - return fmt.Errorf("failed to unmarshl config for path %q: %w", path, err) + return fmt.Errorf("failed to unmarshal config for path %q: %w", path, err) } var keyPath []string