Show only a log message when could not read conf

This commit is contained in:
Claudemiro
2016-08-14 21:00:47 -03:00
parent 9ad14daeeb
commit 994e8e00f1
+4 -2
View File
@@ -27,14 +27,16 @@ func Start(filename string) {
file, err := os.Open(filename)
if err != nil {
log.Fatal(err)
log.Error(err)
return
}
defer file.Close()
// Reading config
if err := json.NewDecoder(file).Decode(&conf); err != nil {
log.Fatal(err)
log.Error(err)
return
}
// Using a in memory database