mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
hugolib: Don't ignore errors from applyDepsIfNeeded
This commit is contained in:
1 parent
6b29bccfee
commit
27610ddd01
1 file changed
+3
-1
@@ -63,7 +63,9 @@ func newHugoSites(cfg deps.DepsCfg, sites ...*Site) (*HugoSites, error) {
|
||||
// TODO(bep)
|
||||
cfg.Cfg.Set("multilingual", sites[0].multilingualEnabled())
|
||||
|
||||
applyDepsIfNeeded(cfg, sites...)
|
||||
if err := applyDepsIfNeeded(cfg, sites...); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
h.Deps = sites[0].Deps
|
||||
|
||||
|
||||
Reference in new issue
Block a user