Commit ad004dbf authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub

Merge pull request #4194 from ipfs/feat/fuse-fixes

various fixes for /ipfs fuse code
parents d9c5d7df 3e73bba8
......@@ -153,8 +153,13 @@ type sesGetter struct {
func (sg *sesGetter) Get(ctx context.Context, c *cid.Cid) (node.Node, error) {
blk, err := sg.bs.GetBlock(ctx, c)
if err != nil {
switch err {
case bserv.ErrNotFound:
return nil, ErrNotFound
default:
return nil, err
case nil:
// noop
}
return node.Decode(blk)
......
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