commands: Recover from error in server

Issue introduced some days ago.

Fixes #4516
This commit is contained in:
Bjørn Erik Pedersen 2018-03-18 12:54:06 +01:00
parent da88015776
commit f0052b6d0f
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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)