Skip to content

Commit

Permalink
Update error message about failed menus in config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
RheingoldRiver authored and bep committed Feb 24, 2022
1 parent 308ad61 commit 0df096b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 0df096b

Please sign in to comment.