commands,config: Fix typo in log and error messages

This commit is contained in:
Oleksandr Redko authored and Bjørn Erik Pedersen committed 2023-06-12 16:45:20 +02:00
1 parent ed7e250068
commit b8526f32fa
2 files changed
+2 -2

No files matched your search

+1 -1
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()
+1 -1
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