mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #394 from xiangli-cmu/fix_error_msg
fix(store.go) report node.path
This commit is contained in:
commit
d204fa8438
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user