From dba5eb57cfd2948836b2c0376032ff41d0708724 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Thu, 12 Dec 2013 10:12:33 -0800 Subject: [PATCH] fix(store.go) report node.path --- store/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/store.go b/store/store.go index 9523572ff..01023e308 100644 --- a/store/store.go +++ b/store/store.go @@ -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)