commit 0df096b86810df813f95f2d7e141dfc8aa448301
parent 308ad611b63df74aaa8c875350b72dfbf1691cbc
Author: RheingoldRiver <18037011+RheingoldRiver@users.noreply.github.com>
Date: Thu, 24 Feb 2022 04:14:32 -0600
Update error message about failed menus in config.toml
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -1420,14 +1420,14 @@ func (s *Site) getMenusFromConfig() navigation.Menus {
for name, menu := range menus {
m, err := cast.ToSliceE(menu)
if err != nil {
- s.Log.Errorf("unable to process menus in site config\n")
+ s.Log.Errorf("menus in site config contain errors\n")
s.Log.Errorln(err)
} else {
handleErr := func(err error) {
if err == nil {
return
}
- s.Log.Errorf("unable to process menus in site config\n")
+ s.Log.Errorf("menus in site config contain errors\n")
s.Log.Errorln(err)
}