ref: e6aa6edb4c5f37feb1f2bb8c0f3f80933c7adf5f
parent: 6bcc5ad8b2e45b497e83a1d53f7a60de7d08c9c5
author: Nick Krichevsky <nick@ollien.com>
date: Mon Oct 14 19:34:56 EDT 2019
Do not attempt to build if there is no config file Fixes #5896
--- a/commands/commandeer.go
+++ b/commands/commandeer.go
@@ -313,6 +313,8 @@
return err
}
+ } else if mustHaveConfigFile && len(configFiles) == 0 {
+ return hugolib.ErrNoConfigFile
}
c.configFiles = configFiles