diff options
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/hugo_sites.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index f1930fd71..d2f4426d5 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -390,6 +390,9 @@ func newHugoSites(cfg deps.DepsCfg, sites ...*Site) (*HugoSites, error) { } h.Deps = sites[0].Deps + if h.Deps == nil { + return nil, initErr + } // Only needed in server mode. // TODO(bep) clean up the running vs watching terms |