mirror of
https://github.com/taigrr/wtf
synced 2026-03-29 07:35:16 -07:00
WTF-482 Sanity-check position configuration data for modules
If a module is missing any of the positional data it now informs the user and exits gracefully with an error.
This commit is contained in:
@@ -132,6 +132,7 @@ func LoadConfigFile(filePath string) *config.Config {
|
||||
fmt.Println(" 2. Your \033[0;33mconfig.yml\033[0m file has a syntax error. Try running it through http://www.yamllint.com to check for errors.")
|
||||
fmt.Println()
|
||||
fmt.Printf("Error: \033[0;31m%s\033[0m\n\n", err.Error())
|
||||
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user