mirror of
https://github.com/thewhitetulip/Tasks.git
synced 2025-04-26 13:49:18 +08:00
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…
x
Reference in New Issue
Block a user