Update error message about failed menus in config.toml

This commit is contained in:
RheingoldRiver 2022-02-24 04:14:32 -06:00 committed by Bjørn Erik Pedersen
parent 308ad611b6
commit 0df096b868

View file

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