Minor tweak
This commit is contained in:
parent
f8b4031aa3
commit
6634e7d8ef
|
@ -31,7 +31,7 @@ func LoadConfig() (*koanf.Koanf, *kfile.File) {
|
||||||
configFileProvider := kfile.Provider(CONFIG_FILE_PATH)
|
configFileProvider := kfile.Provider(CONFIG_FILE_PATH)
|
||||||
_, err := os.Stat(CONFIG_FILE_PATH)
|
_, err := os.Stat(CONFIG_FILE_PATH)
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
//log.Printf("%s does not exist, USING DEFAULTS", ui.CONFIG_FILE_PATH)
|
//log.Printf("%s does not exist, USING DEFAULTS", CONFIG_FILE_PATH)
|
||||||
} else {
|
} else {
|
||||||
if errConfigFile := pfConfig.Load(configFileProvider, toml.Parser()); errConfigFile != nil {
|
if errConfigFile := pfConfig.Load(configFileProvider, toml.Parser()); errConfigFile != nil {
|
||||||
log.Fatalf("Error loading config : %s", err)
|
log.Fatalf("Error loading config : %s", err)
|
||||||
|
|
Loading…
Reference in a new issue