hugolib: Don't ignore errors from applyDepsIfNeeded

This commit is contained in:
Albert Nigmatzianov 2017-04-02 14:50:13 +02:00 committed by Bjørn Erik Pedersen
parent 6b29bccfee
commit 27610ddd01

View file

@ -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