make sure we print an error if the config file is invalid.

fixes #408
This commit is contained in:
Jason Kulatunga
2022-11-29 22:06:42 -08:00
parent c9f13f4398
commit fb760a9f6d
+1
View File
@@ -34,6 +34,7 @@ func main() {
if _, ok := err.(errors.ConfigFileMissingError); ok { // Handle errors reading the config file
//ignore "could not find config file"
} else if err != nil {
log.Print(color.HiRedString("CONFIG ERROR: %v", err))
os.Exit(1)
}