check config bugs

This commit is contained in:
2021-07-11 13:51:04 +02:00
parent c2e88193cd
commit a4b54f9f64
5 changed files with 11 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/spf13/viper"
)
const VERSION = "1.1.1"
const VERSION = "1.1.2"
var CI bool = false
var VERBOSE bool = false
@@ -140,7 +140,7 @@ func CheckConfig() error {
}
for name, location := range c.Locations {
location.name = name
if err := location.validate(c); err != nil {
if err := location.validate(); err != nil {
return err
}
}