Browse Source

avoid missing configuration file error

pull/2/head
Chris Lu 12 years ago
parent
commit
a1d5a6298c
  1. 5
      go/topology/topology.go

5
go/topology/topology.go

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

Loading…
Cancel
Save