1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 10:00:50 +00:00

Merge pull request #22 from Unknwon/master

prompt fix
This commit is contained in:
astaxie 2013-08-07 19:47:21 -07:00
commit a2c9ff7213

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 {