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