Actually load the provided file for setup

pull/15/head
Daniel 2024-03-23 16:59:34 -07:00 committed by GitHub
parent dc13a4f4d8
commit be81cb7bdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func Setup(configurationFile string, debug bool) *ini.File {
configurationFile = "config.ini"
}
cfg, err := ini.Load("config.ini")
cfg, err := ini.Load(configurationFile)
if err != nil {
fmt.Printf("Fail to read file: %v", err)
os.Exit(1)