Skip to content
Permalink
Browse files

Do not attempt to build if there is no config file

Fixes #5896
  • Loading branch information...
ollien authored and bep committed Oct 15, 2019
1 parent 6bcc5ad commit e6aa6edb4c5f37feb1f2bb8c0f3f80933c7adf5f
Showing with 2 additions and 0 deletions.
  1. +2 −0 commands/commandeer.go
@@ -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

0 comments on commit e6aa6ed

Please sign in to comment.
You can’t perform that action at this time.