mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Update error message about failed menus in config.toml
This commit is contained in:
parent
308ad611b6
commit
0df096b868
1 changed files with 2 additions and 2 deletions
|
@ -1420,14 +1420,14 @@ func (s *Site) getMenusFromConfig() navigation.Menus {
|
||||||
for name, menu := range menus {
|
for name, menu := range menus {
|
||||||
m, err := cast.ToSliceE(menu)
|
m, err := cast.ToSliceE(menu)
|
||||||
if err != nil {
|
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)
|
s.Log.Errorln(err)
|
||||||
} else {
|
} else {
|
||||||
handleErr := func(err error) {
|
handleErr := func(err error) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return
|
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)
|
s.Log.Errorln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue