From 018df9ceb04ebc96296885152cf05808ee74af5a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 19 Mar 2013 10:33:33 -0700 Subject: [PATCH] avoid file not exist error --- go/topology/topology.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/topology/topology.go b/go/topology/topology.go index 74dc1cd09..6f18a73ee 100644 --- a/go/topology/topology.go +++ b/go/topology/topology.go @@ -53,8 +53,9 @@ func (t *Topology) loadConfiguration(configurationFile string) error { b, e := ioutil.ReadFile(configurationFile) if e == nil { t.configuration, e = NewConfiguration(b) + return e } - return e + return nil } func (t *Topology) Lookup(vid storage.VolumeId) []*DataNode {