Browse Source

panic() syntax

Ask Bjørn Hansen 13 years ago
parent
commit
42ef72fbd2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      config.go

+ 2 - 1
config.go

@@ -68,7 +68,8 @@ func readZoneFile(zoneName, fileName string) *Zone {
 
 
 	b, err := ioutil.ReadFile(fileName)
 	b, err := ioutil.ReadFile(fileName)
 	if err != nil {
 	if err != nil {
-		panic("Could not read " + fileName + ": " + err)
+		log.Println("Could not read ", fileName, ": ", err)
+		panic(err)
 	}
 	}
 
 
 	Zone := new(Zone)
 	Zone := new(Zone)