Merge pull request #394 from xiangli-cmu/fix_error_msg

fix(store.go) report node.path
This commit is contained in:
Xiang Li 2013-12-12 10:13:01 -08:00
commit d204fa8438

View File

@ -541,7 +541,7 @@ func (s *store) checkDir(parent *node, dirName string) (*node, *etcdErr.Error) {
return node, nil
}
return nil, etcdErr.NewError(etcdErr.EcodeNotDir, parent.Path, s.CurrentIndex)
return nil, etcdErr.NewError(etcdErr.EcodeNotDir, node.Path, s.CurrentIndex)
}
n := newDir(s, path.Join(parent.Path, dirName), s.CurrentIndex+1, parent, parent.ACL, Permanent)