Merge pull request #16 from mkevac/master

fix error message about reading a config file
This commit is contained in:
Suraj Patil 2016-02-16 20:52:49 +05:30
commit 45599b4d78
1 changed files with 1 additions and 1 deletions

View File

@ -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)