commands,config: Fix typo in log and error messages

This commit is contained in:
Oleksandr Redko 2023-05-23 12:37:44 +03:00 committed by Bjørn Erik Pedersen
parent ed7e250068
commit b8526f32fa
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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