diff options
author | Albert Nigmatzianov <albertnigma@gmail.com> | 2017-04-02 14:50:13 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-02 18:43:32 +0200 |
commit | 27610ddd011e8172d00e02275f948c3f1ed43e4f (patch) | |
tree | 8fe5770941e324f9c4abaf38bcb7c89201bf7c1f | |
parent | 6b29bccfeec75172bed66285a7d20ff73bd67b25 (diff) |
hugolib: Don't ignore errors from applyDepsIfNeeded
-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 |