Actually load the provided file for setup
parent
dc13a4f4d8
commit
be81cb7bdc
2
setup.go
2
setup.go
|
@ -28,7 +28,7 @@ func Setup(configurationFile string, debug bool) *ini.File {
|
||||||
configurationFile = "config.ini"
|
configurationFile = "config.ini"
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := ini.Load("config.ini")
|
cfg, err := ini.Load(configurationFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Fail to read file: %v", err)
|
fmt.Printf("Fail to read file: %v", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
Loading…
Reference in New Issue