This commit is contained in:
Unknown 2013-08-08 06:41:00 +08:00
parent 8cbca4826e
commit 22db382cb8
1 changed files with 1 additions and 1 deletions

2
run.go
View File

@ -98,7 +98,6 @@ func runApp(cmd *Command, args []string) {
// loadConfig loads customized configuration.
func loadConfig() error {
fmt.Println("[INFO] Detect bee.json")
f, err := os.Open("bee.json")
if err != nil {
// Use default.
@ -108,6 +107,7 @@ func loadConfig() error {
}
} else {
defer f.Close()
fmt.Println("[INFO] Detected bee.json")
d := json.NewDecoder(f)
err = d.Decode(&conf)
if err != nil {