mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00:00
Update error message about failed menus in config.toml
This commit is contained in:
1 parent
308ad611b6
commit
0df096b868
1 file changed
+2
-2
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user