diff options
author | Lars Lehtonen <lars.lehtonen@gmail.com> | 2023-08-24 09:57:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 19:57:44 +0300 |
commit | a7b93e6564e6a4a7a3043b431e255ba716940408 (patch) | |
tree | e38834ecf78157635497f61ee49fd25e7afa7aed /hugolib | |
parent | 65871d5cf48d50935cf6e2d18483c32736c2730d (diff) |
hugolib: Handle dropped error
Diffstat (limited to 'hugolib')
-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, |