Commit 6c741079 authored by acud's avatar acud Committed by GitHub

manifest: dont override mantaray.ErrNotFound (#1012)

parent 2cd1a10f
...@@ -108,8 +108,11 @@ func (m *mantarayManifest) Lookup(path string) (Entry, error) { ...@@ -108,8 +108,11 @@ func (m *mantarayManifest) Lookup(path string) (Entry, error) {
node, err := m.trie.LookupNode(p, m.loader) node, err := m.trie.LookupNode(p, m.loader)
if err != nil { if err != nil {
if errors.Is(err, mantaray.ErrNotFound) {
return nil, ErrNotFound return nil, ErrNotFound
} }
return nil, err
}
if !node.IsValueType() { if !node.IsValueType() {
return nil, ErrNotFound return nil, ErrNotFound
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment