mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
commands: Recover from error in server
Issue introduced some days ago. Fixes #4516
This commit is contained in:
parent
da88015776
commit
f0052b6d0f
1 changed files with 1 additions and 0 deletions
|
@ -942,6 +942,7 @@ func (c *commandeer) resetAndBuildSites() (err error) {
|
|||
|
||||
func (c *commandeer) initSites() error {
|
||||
if Hugo != nil {
|
||||
Hugo.Log.ResetLogCounters()
|
||||
return nil
|
||||
}
|
||||
h, err := hugolib.NewHugoSites(*c.DepsCfg)
|
||||
|
|
Loading…
Reference in a new issue