diff options
-rw-r--r-- | hugolib/hugo_sites.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index 6c737f65a..2682e524d 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -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 |