Skip to content

Commit

Permalink
Merge pull request #4194 from ipfs/feat/fuse-fixes
Browse files Browse the repository at this point in the history
various fixes for /ipfs fuse code
  • Loading branch information
whyrusleeping committed Sep 6, 2017
2 parents d9c5d7d + 3e73bba commit ad004db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion merkledag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ad004db

Please sign in to comment.