diff options
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index a8f0599bb..8cdfa44f2 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -254,9 +254,11 @@ func (s *Site) Build() (err error) { return nil } -func (s *Site) Analyze() { - s.Process() - s.ShowPlan(os.Stdout) +func (s *Site) Analyze() error { + if err := s.Process(); err != nil { + return err + } + return s.ShowPlan(os.Stdout) } func (s *Site) prepTemplates() { |