mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
449deb7f9c
commit
3e9db2ad95
1 changed files with 4 additions and 1 deletions
|
@ -158,7 +158,10 @@ func (c *pagesCollector) isCascadingEdit(dir contentDirKey) (bool, string) {
|
|||
func (c *pagesCollector) Collect() (collectErr error) {
|
||||
c.proc.Start(context.Background())
|
||||
defer func() {
|
||||
collectErr = c.proc.Wait()
|
||||
err := c.proc.Wait()
|
||||
if collectErr == nil {
|
||||
collectErr = err
|
||||
}
|
||||
}()
|
||||
|
||||
if len(c.filenames) == 0 {
|
||||
|
|
Loading…
Reference in a new issue