1
0
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:
Chris Cummer
2019-07-04 21:17:39 -07:00
parent d76f6807cc
commit 08c7e768c0
3 changed files with 82 additions and 13 deletions

View File

@@ -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)
}