fix error message about reading a config file
This commit is contained in:
parent
930a75c045
commit
0c865f1690
|
@ -26,7 +26,7 @@ var config Configuration
|
|||
func ReadConfig(fileName string) Configuration {
|
||||
configFile, err := ioutil.ReadFile(fileName)
|
||||
if err != nil {
|
||||
log.Fatal("Unable to read log file")
|
||||
log.Fatalf("Unable to read config file '%s'", fileName)
|
||||
}
|
||||
//log.Print(configFile)
|
||||
err = json.Unmarshal(configFile, &config)
|
||||
|
|
Loading…
Reference in New Issue