modules: Fix format flag in error

This commit is contained in:
Oleksandr Redko 2023-05-18 12:20:39 +03:00 committed by Bjørn Erik Pedersen
parent 3f00f47535
commit 95818e27dc

View file

@ -299,7 +299,7 @@ func (c *collector) add(owner *moduleAdapter, moduleImport Import, disabled bool
return nil, nil return nil, nil
} }
if found, _ := afero.Exists(c.fs, moduleDir); !found { if found, _ := afero.Exists(c.fs, moduleDir); !found {
c.err = c.wrapModuleNotFound(fmt.Errorf(`module %q not found in % q; either add it as a Hugo Module or store it in %q.`, modulePath, moduleDir, c.ccfg.ThemesDir)) c.err = c.wrapModuleNotFound(fmt.Errorf(`module %q not found in %q; either add it as a Hugo Module or store it in %q.`, modulePath, moduleDir, c.ccfg.ThemesDir))
return nil, nil return nil, nil
} }
} }