diff options
-rw-r--r-- | hugolib/site_new.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hugolib/site_new.go b/hugolib/site_new.go index 8fff87258..8abd511c3 100644 --- a/hugolib/site_new.go +++ b/hugolib/site_new.go @@ -195,7 +195,9 @@ func NewHugoSites(cfg deps.DepsCfg) (*HugoSites, error) { s.PageCollections = newPageCollections(pm) s.siteRefLinker, err = newSiteRefLinker(s) - + if err != nil { + return nil, err + } // Set up the main publishing chain. pub, err := publisher.NewDestinationPublisher( firstSiteDeps.ResourceSpec, |