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)