File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
15
15
dag "github.com/ipfs/boxo/ipld/merkledag"
16
16
"github.com/ipfs/boxo/ipld/unixfs"
17
17
unixpb "github.com/ipfs/boxo/ipld/unixfs/pb"
18
+ "github.com/ipfs/boxo/path/resolver"
18
19
ipfscmds "github.com/ipfs/go-ipfs-cmds"
19
20
cbor "github.com/ipfs/go-ipld-cbor"
20
21
ipld "github.com/ipfs/go-ipld-format"
@@ -257,6 +258,10 @@ func cidErrKind(err error) fserrors.Kind {
257
258
}
258
259
259
260
func resolveErrKind (err error ) fserrors.Kind {
261
+ var resolveErr resolver.ErrNoLink
262
+ if errors .As (err , & resolveErr ) {
263
+ return fserrors .NotExist
264
+ }
260
265
// XXX: Upstream doesn't define error values
261
266
// to compare against. We have to fallback to strings.
262
267
// This could break at any time.
You can’t perform that action at this time.
0 commit comments