hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit e6aa6edb4c5f37feb1f2bb8c0f3f80933c7adf5f
parent 6bcc5ad8b2e45b497e83a1d53f7a60de7d08c9c5
Author: Nick Krichevsky <nick@ollien.com>
Date:   Mon, 14 Oct 2019 23:34:56 -0400

Do not attempt to build if there is no config file

Fixes #5896

Diffstat:
Mcommands/commandeer.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/commands/commandeer.go b/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