avoid missing configuration file error

This commit is contained in:
Chris Lu 2013-03-19 10:36:29 -07:00
parent 2d4a7ac9f9
commit a1d5a6298c

View file

@ -6,6 +6,7 @@ import (
"code.google.com/p/weed-fs/go/storage"
"errors"
"io/ioutil"
"log"
"math/rand"
)
@ -54,8 +55,8 @@ func (t *Topology) loadConfiguration(configurationFile string) error {
if e == nil {
t.configuration, e = NewConfiguration(b)
return e
}else{
log.Println("Using default configurations.")
} else {
log.Println("Using default configurations.")
}
return nil
}