mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
committed by
Bjørn Erik Pedersen
parent
6bcc5ad8b2
commit
e6aa6edb4c
@@ -313,6 +313,8 @@ func (c *commandeer) loadConfig(mustHaveConfigFile, running bool) error {
|
||||
return err
|
||||
}
|
||||
|
||||
} else if mustHaveConfigFile && len(configFiles) == 0 {
|
||||
return hugolib.ErrNoConfigFile
|
||||
}
|
||||
|
||||
c.configFiles = configFiles
|
||||
|
Reference in New Issue
Block a user