From e2387ebbb6715178a626be805fc1c72c0b0780a7 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 28 Mar 2018 15:11:49 -0700 Subject: [PATCH] fix hamt node not protobuf error License: MIT Signed-off-by: Steven Allen --- unixfs/hamt/hamt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unixfs/hamt/hamt.go b/unixfs/hamt/hamt.go index 72a008066..77ce9ceff 100644 --- a/unixfs/hamt/hamt.go +++ b/unixfs/hamt/hamt.go @@ -100,7 +100,7 @@ func makeShard(ds ipld.DAGService, size int) (*Shard, error) { func NewHamtFromDag(dserv ipld.DAGService, nd ipld.Node) (*Shard, error) { pbnd, ok := nd.(*dag.ProtoNode) if !ok { - return nil, dag.ErrLinkNotFound + return nil, dag.ErrNotProtobuf } pbd, err := format.FromBytes(pbnd.Data())